fixes #187: if webhook_id is present, abort message parsing

This commit is contained in:
Sakimori 2021-02-04 19:32:02 -05:00
parent 2a19e47b5f
commit 6d6da97202

View file

@ -1219,7 +1219,7 @@ async def on_reaction_add(reaction, user):
@client.event
async def on_message(msg):
if msg.author == client.user:
if msg.author == client.user or not msg.webhook_id is None:
return
command_b = False