Answer the question
In order to leave comments, you need to log in
Fetch_member in a function?
@tasks.loop(seconds=10)
async def check_bans():
#for value in sql.execute("SELECT * FROM bans"):
#mem = await ctx.guild.fetch_member(value[0])
print("Ds")
#check_bans.start()
Answer the question
In order to leave comments, you need to log in
You can use bot.get_guild(id)
If you have cogs, then do it in the class and there alreadyself.bot.get_guild(id)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question