message_map doesn't need guild id as a string.
This commit is contained in:
@@ -191,7 +191,7 @@ class SubmissionCreateButton(nextcord.ui.View):
|
|||||||
"""Button for score submission."""
|
"""Button for score submission."""
|
||||||
guild_data = highscores_data[str(interaction.guild.id)]
|
guild_data = highscores_data[str(interaction.guild.id)]
|
||||||
|
|
||||||
boss_name = highscores_message_map[str(interaction.guild.id)][interaction.message.id]
|
boss_name = highscores_message_map[interaction.guild.id][interaction.message.id]
|
||||||
channel = interaction.guild.get_channel(guild_data["submission_channel_id"])
|
channel = interaction.guild.get_channel(guild_data["submission_channel_id"])
|
||||||
|
|
||||||
# a user should only have 1 submission active at once.
|
# a user should only have 1 submission active at once.
|
||||||
|
|||||||
+1
-1
@@ -75,7 +75,7 @@ async def send_highscore_message(
|
|||||||
# save message -> boss_name in message_map
|
# save message -> boss_name in message_map
|
||||||
# get guild id from channel
|
# get guild id from channel
|
||||||
# channel should come from the guild that is requesting this highscores message anyways.
|
# channel should come from the guild that is requesting this highscores message anyways.
|
||||||
highscores_message_map[channel.guild.id][str(message_id)] = boss_name
|
highscores_message_map[channel.guild.id][message_id] = boss_name
|
||||||
|
|
||||||
return message
|
return message
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user