Removed old usage of message map from file.

This commit is contained in:
alwayscompiling
2022-07-22 21:22:17 -04:00
parent a1a9fae9fa
commit 307ef86493
3 changed files with 2 additions and 8 deletions
+1 -5
View File
@@ -7,9 +7,9 @@ import nextcord
from nextcord import Embed
from nextcord.ext import commands
from utilities.data_storage import create_message_map # pylint: disable=import-error
from highscores import highscores_data # pylint: disable=import-error
from highscores import submission_objects # pylint: disable=import-error
from highscores import highscores_message_map # pylint: disable=import-error
from .verification_view import VerificationView
@@ -186,11 +186,7 @@ class SubmissionCreateButton(nextcord.ui.View):
self, button: nextcord.ui.Button, interaction: nextcord.Interaction
): # pylint: disable=unused-argument
"""Button for score submission."""
highscores_message_map = create_message_map()
boss_name = highscores_message_map[str(interaction.message.id)]
# embed = nextcord.Embed(title="Highscores Submission")
# embed.add_field(name="Boss", value=boss_name, inline=False)
# embed.add_field(name="User", value=interaction.user.display_name, inline=False)
channel = self._bot.get_channel(highscores_data["submission_channel_id"])
# a user should only have 1 submission active at once.