From 9e204117dfd236c0cc2fb8355899df2feab63d29 Mon Sep 17 00:00:00 2001 From: an-dyy Date: Tue, 1 Mar 2022 15:24:28 -0500 Subject: docs: Added docstring for moderator access --- bot/exts/info/help.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bot/exts/info/help.py b/bot/exts/info/help.py index 71f244eac..864e7edd2 100644 --- a/bot/exts/info/help.py +++ b/bot/exts/info/help.py @@ -121,7 +121,11 @@ class CommandView(ui.View): self.children.append(GroupButton(help_command, command, emoji="↩️")) async def interaction_check(self, interaction: Interaction) -> bool: - """Ensures that the button only works for the user who spawned the help command.""" + """ + Ensures that the button only works for the user who spawned the help command. + + Also allows moderators to access buttons even when not the author of message. + """ if interaction.user is not None: if any(role.id in constants.MODERATION_ROLES for role in interaction.user.roles): return True -- cgit v1.2.3