Skip to content

Commit

Permalink
Only listen for messages in one channel (#90)
Browse files Browse the repository at this point in the history
Only wait for messages in the same channel as the command was executed in
  • Loading branch information
Edwinexd committed Nov 30, 2021
1 parent d43d675 commit 3141fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def new(self, inter):
cancelled = False

def check(message):
return message.author.id == inter.author.id and message.content != ""
return message.author.id == inter.author.id and message.content != "" and message.channel.id == inter.channel.id

if not cancelled:
error_messages = []
Expand Down

0 comments on commit 3141fa2

Please sign in to comment.