diff --git a/other_ext/vip_roles.py b/other_ext/vip_roles.py index d6f1bb2..e558275 100644 --- a/other_ext/vip_roles.py +++ b/other_ext/vip_roles.py @@ -23,8 +23,9 @@ class Extension: await self.updater() return - async def task(self, timeout = 300): + async def task(self, timeout = 60): await self.core.wait_until_ready() + await asyncio.sleep(5) while True: await self.updater() await asyncio.sleep(timeout) @@ -47,7 +48,7 @@ class Extension: return await response.json() async def checkRoles(self, role_id): - current_members = (await self.core.fetch_guild(self.MAIN_GUILD_ID)).get_role(role_id).members + current_members = self.core.get_guild(self.MAIN_GUILD_ID).get_role(role_id).members if role_id == self.DONATE_VIP_ROLE: active_vips = await self.getVIP_DiscordIDs() elif role_id == self.FREE_VIP_ROLE: