You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would be best way to check for bans? Lets say I am in 100 guilds, is there clean way of running a function when account get banned from x server. I think it would be doable by writing
async def check(self):
await self.wait_until_ready()
while True:
for gid, gname in guild_name_id_list.items():
try:
self.fetch_guild(gid)
except:
print(f"{self.user} got banned from guild: {gname}")
...
await asyncio.sleep(60)
and passing this function to setup hook to check join status for every server every 1 minutes but if you know/if it exists any cleaner ways of notifying when account got banned, it would be great help.
By cleaner I also mean lower number of requests to discord API. Generally I have lot of functions sending lot of requests to discord API so I fear my account gets banned from discord itself adding more functions like this due to making lot of requests
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What would be best way to check for bans? Lets say I am in 100 guilds, is there clean way of running a function when account get banned from x server. I think it would be doable by writing
and passing this function to setup hook to check join status for every server every 1 minutes but if you know/if it exists any cleaner ways of notifying when account got banned, it would be great help.
By cleaner I also mean lower number of requests to discord API. Generally I have lot of functions sending lot of requests to discord API so I fear my account gets banned from discord itself adding more functions like this due to making lot of requests
Beta Was this translation helpful? Give feedback.
All reactions