Guild id is a string in highscores data json.

This commit is contained in:
alwayscompiling
2022-07-22 23:39:51 -04:00
parent be29194a57
commit 5d3a1568a2
5 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
?post-scores
```
"""
guild_data = highscores_data[ctx.guild.id]
guild_data = highscores_data[str(ctx.guild.id)]
highscore_channel_id = guild_data["highscore_channel_id"]
print(f"Printing out highscores information in channel {highscore_channel_id}")
channel = ctx.guild.get_channel(highscore_channel_id)