mirror of
https://github.com/Xevion/contest-assistant.git
synced 2025-12-14 04:11:19 -06:00
Fix critical mistake in Submission.clear_other_votes
- As well as other possible flaws in various functions of the bot's operation. - Fixed inactive prematurely closed Period's showing their final state instead of Finished.
This commit is contained in:
@@ -109,7 +109,7 @@ class ContestBot(commands.Bot):
|
||||
return
|
||||
else:
|
||||
for submission in submissions:
|
||||
message: discord.PartialMessage = channel.get_partial_message(submission.id)
|
||||
message: discord.Message = await channel.fetch_message(submission.id)
|
||||
await message.add_reaction(self.get_emoji(constants.Emoji.UPVOTE))
|
||||
|
||||
def get_message(self, channel_id: int, message_id: int) -> discord.PartialMessage:
|
||||
|
||||
Reference in New Issue
Block a user