diff --git a/main.py b/main.py index 6b82deb..4bc69c6 100644 --- a/main.py +++ b/main.py @@ -155,8 +155,8 @@ async def on_message(ctx): for userid in presence[str(ctx.guild.id)].keys(): uList.append(userid) else: pass for user in uList: - if user in ctx.content and not ctx.author.bot: - fetch_user = client.get_user(id(user)) + if str(user) in ctx.content and not ctx.author.bot: + fetch_user = await client.fetch_user(int(user)) await ctx.channel.send(f"{fetch_user.display_name} went AFK : {presence[str(ctx.guild.id)][str(user)]['response']}") if str(ctx.guild.id) in presence and str(ctx.author.id) in presence[str(ctx.guild.id)]: _presence.remove_afk(ctx.guild.id, ctx.author.id)