We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01e918 commit ce5efadCopy full SHA for ce5efad
messageFunctions.py
@@ -46,12 +46,11 @@ async def sortEventMessages(bot: OperationBot):
46
47
event: Event
48
for event in EventDatabase.events.values():
49
- try:
50
- messageList = await getEventMessages(event, bot)
51
- except MessageNotFound as e:
52
- raise MessageNotFound(f"sortEventMessages: {e}") from e
+ messageList = await getEventMessages(event, bot)
53
await updateMessageEmbeds(messageList, event, bot.eventchannel)
54
- await updateReactions(event, messageList=messageList)
+ for event in EventDatabase.events.values():
+ # Updating reactions takes a while, so we do it in a separate task
+ await updateReactions(event, bot=bot)
55
56
57
async def createEventMessages(event: Event, channel: TextChannel,
0 commit comments