solved issue with editting message.

This commit is contained in:
alwayscompiling
2022-06-28 21:05:41 -04:00
parent 71611502cf
commit b134a8107d
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -33,7 +33,6 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
return
for boss in highscores.highscores_config["bosses"]:
await highscore_message.send_highscore_message(channel, boss)
break
data_storage.save_highscores_data(highscores.highscores_data)
+1 -1
View File
@@ -57,7 +57,7 @@ async def send_highscore_message(channel, boss):
message_id = highscores.highscores_data[boss["boss"]]["message_id"]
try:
message = await channel.fetch_message(message_id)
await message.edit(highscore_string)
await message.edit(content=highscore_string)
except nextcord.NotFound:
# message doesn't exist.
message = await channel.send(highscore_string)