From c573bacc50e117c36fe6ba919685769072b11d96 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Sun, 25 Oct 2020 16:01:12 +0100 Subject: [PATCH] Update main.py --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 733a7d6..4e8b79c 100644 --- a/main.py +++ b/main.py @@ -73,7 +73,7 @@ async def on_raw_reaction_add(payload): else: for role_id, msg_id, emoji in bot.reaction_roles: if msg_id == payload.message_id and emoji == str(payload.emoji.name.encode('utf-8')): - await payload.member.add_roles(bot.get_guild(payload.guild_id).get_role(role_id)) + await payload.member.add_roles(bot.get_guild(payload.guild_id).get_role(role_id), reason='reaction') @bot.event async def on_raw_reaction_remove(payload): @@ -82,7 +82,7 @@ async def on_raw_reaction_remove(payload): else: for role_id, msg_id, emoji in bot.reaction_roles: if msg_id == payload.message_id and emoji == str(payload.emoji.name.encode('utf-8')): - await bot.get_guild(payload.guild_id).get_member(payload.user_id).remove_roles(bot.get_guild(payload.guild_id).get_role(role_id)) + await bot.get_guild(payload.guild_id).get_member(payload.user_id).remove_roles(bot.get_guild(payload.guild_id).get_role(role_id), reason='reaction') @bot.command() @commands.has_permissions(manage_roles=True) @@ -169,4 +169,4 @@ async def debug(ctx, *, cmd): await ctx.send(f'''```py {result}```''') -bot.run(botToken) \ No newline at end of file +bot.run(botToken)