mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
AAAAA x2
This commit is contained in:
parent
03fe4f8c44
commit
c55091d870
1 changed files with 2 additions and 1 deletions
|
@ -14,8 +14,9 @@ class Events(commands.Cog):
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener("on_raw_reaction_add")
|
||||||
async def on_raw_reaction_add(self, payload: discord.RawReactionActionEvent):
|
async def on_raw_reaction_add(self, payload: discord.RawReactionActionEvent):
|
||||||
|
print("[raw_add]", payload)
|
||||||
channel: Optional[discord.TextChannel] = self.bot.get_channel(payload.channel_id)
|
channel: Optional[discord.TextChannel] = self.bot.get_channel(payload.channel_id)
|
||||||
print("[raw_add]", channel)
|
print("[raw_add]", channel)
|
||||||
if channel is not None:
|
if channel is not None:
|
||||||
|
|
Loading…
Reference in a new issue