mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
force fetch guild events
use API call to ensure data is correct and cache is not interfering
This commit is contained in:
1 file changed
+2
-1
@@ -48,8 +48,9 @@ class WebsiteEvents(commands.Cog):
|
||||
self.bot.logger.info("Syncing events to Sanity CMS")
|
||||
|
||||
guild = self.bot.get_guild(self.bot.guild_id)
|
||||
events = await guild.fetch_scheduled_events()
|
||||
|
||||
for event in guild.scheduled_events:
|
||||
for event in events:
|
||||
if event.status == discord.EventStatus.cancelled:
|
||||
await self.delete_event(event)
|
||||
elif event.status == discord.EventStatus.scheduled:
|
||||
|
||||
Reference in new issue
Block a user