This commit is contained in:
Juni
2022-04-10 23:03:24 -04:00
parent 4bd1f0c1c6
commit 521dd45c3a

View File

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