fix threaded replies in DM?

This commit is contained in:
Cyberes 2023-03-19 19:52:46 -06:00
parent 629bce7576
commit f55d3b41b0
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class Callbacks:
asyncio.get_event_loop().create_task(inner())
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.
msg = msg if not msg.startswith(self.command_prefix) else msg[len(self.command_prefix):].strip() # Remove the command prefix
command = Command(