more testing

This commit is contained in:
Juni
2022-04-10 22:45:59 -04:00
parent b266ac7f8b
commit cd5f05c6a3

View File

@@ -25,8 +25,14 @@ class ReactQuote(commands.Cog):
@commands.Cog.listener()
async def on_raw_reaction_add(self, payload:discord.RawReactionActionEvent):
message = await self.bot.get_channel(payload.channel_id)
message.channel.send('Did I work')
"""On React"""
if str(payload.emoji) == '💬':
message = await self.bot.get_channel(payload.channel_id).fetch_message(payload.message_id)
user = payload.member
message.channel.send('Did I work')
message.channel.send('Did I work')
@commands.Cog.listener()
async def on_reaction_add(reaction: discord.Reaction, user: discord.User):
reaction.message.channel.send('Did I work2')