Skip to content

Commit

Permalink
Fix bug in updated app_command mention func; and instead of or fo…
Browse files Browse the repository at this point in the history
…r global check condition
  • Loading branch information
Sachaa-Thanasius committed Mar 23, 2024
1 parent 31dc537 commit 12d7428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ async def find_mention_for(
set to True (default), then the global scope will also be searched.
"""

check_global = self.fallback_to_global is True and guild is not None
check_global = (self.fallback_to_global is True) or (guild is not None)

if isinstance(command, str):
# Try and find a command by that name. discord.py does not return children from tree.get_command, but
Expand Down

0 comments on commit 12d7428

Please sign in to comment.