Get guild data everywhere highscores_data was used.
This commit is contained in:
@@ -29,7 +29,8 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
|
||||
?post-scores
|
||||
```
|
||||
"""
|
||||
highscore_channel_id = highscores_data["highscore_channel_id"]
|
||||
guild_data = highscores_data[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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user