Skip to content

Commit

Permalink
Check presence intent in file check
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Jul 27, 2021
1 parent 260838a commit 673b152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jishaku/paginators.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ def use_file_check(ctx: commands.Context, size: int) -> bool:
return all([
size < 50_000, # Check the text is below the Discord cutoff point;
not Flags.FORCE_PAGINATOR, # Check the user hasn't explicitly disabled this;
(not ctx.author.is_on_mobile() if ctx.guild else True) # Ensure the user isn't on mobile
(not ctx.author.is_on_mobile() if ctx.guild and ctx.bot.intents.presences else True) # Ensure the user isn't on mobile
])

0 comments on commit 673b152

Please sign in to comment.