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:
Xevion
2021-02-18 09:04:55 -06:00
parent 813bb7ea1d
commit eb93b9f3bf
3 changed files with 12 additions and 9 deletions

View File

@@ -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: