mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Require read message hist perms for help menu (#5030)
[Help] Require read message history perms for reaction menu (#5030)
This commit is contained in:
parent
700802c303
commit
31cb4c0604
@ -805,7 +805,11 @@ class RedHelpFormatter(HelpFormatterABC):
|
||||
# save on config calls
|
||||
channel_permissions = ctx.channel.permissions_for(ctx.me)
|
||||
|
||||
if not (channel_permissions.add_reactions and help_settings.use_menus):
|
||||
if not (
|
||||
channel_permissions.add_reactions
|
||||
and channel_permissions.read_message_history
|
||||
and help_settings.use_menus
|
||||
):
|
||||
|
||||
max_pages_in_guild = help_settings.max_pages_in_guild
|
||||
use_DMs = len(pages) > max_pages_in_guild
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user