fix threaded replies in DM?
This commit is contained in:
parent
629bce7576
commit
f55d3b41b0
|
@ -130,7 +130,7 @@ class Callbacks:
|
||||||
|
|
||||||
asyncio.get_event_loop().create_task(inner())
|
asyncio.get_event_loop().create_task(inner())
|
||||||
return
|
return
|
||||||
elif msg.startswith(f'{self.command_prefix} ') or room.member_count == 2:
|
elif (msg.startswith(f'{self.command_prefix} ') or room.member_count == 2) and not is_thread(event):
|
||||||
# Otherwise if this is in a 1-1 with the bot or features a command prefix, treat it as a command.
|
# Otherwise if this is in a 1-1 with the bot or features a command prefix, treat it as a command.
|
||||||
msg = msg if not msg.startswith(self.command_prefix) else msg[len(self.command_prefix):].strip() # Remove the command prefix
|
msg = msg if not msg.startswith(self.command_prefix) else msg[len(self.command_prefix):].strip() # Remove the command prefix
|
||||||
command = Command(
|
command = Command(
|
||||||
|
|
Loading…
Reference in New Issue