aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-03-12 14:46:21 +0100
committerGravatar shtlrs <[email protected]>2023-03-12 14:46:21 +0100
commit39d70b258b257483cc735c4cec74e6f53a83b6e0 (patch)
treec80b8644c9e3590afc6b82d25d17c89d6e206a48
parentMerge pull request #2455 from python-discord/dependabot/pip/aiohttp-3.8.4 (diff)
remove custom ids that handle routing to the view
-rw-r--r--bot/exts/info/subscribe.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/bot/exts/info/subscribe.py b/bot/exts/info/subscribe.py
index 7f4b4f95a..db66069b6 100644
--- a/bot/exts/info/subscribe.py
+++ b/bot/exts/info/subscribe.py
@@ -82,16 +82,6 @@ class RoleButtonView(discord.ui.View):
row = index // ITEMS_PER_ROW
self.add_item(SingleRoleButton(role, role.role_id in author_roles, row))
- async def interaction_check(self, interaction: Interaction) -> bool:
- """Ensure that the user clicking the button is the member who invoked the command."""
- if interaction.user != self.interaction_owner:
- await interaction.response.send_message(
- ":x: This is not your command to react to!",
- ephemeral=True
- )
- return False
- return True
-
class SingleRoleButton(discord.ui.Button):
"""A button that adds or removes a role from the member depending on its current state."""
@@ -113,7 +103,6 @@ class SingleRoleButton(discord.ui.Button):
super().__init__(
style=style,
label=label,
- custom_id=self.CUSTOM_ID_FORMAT.format(role_id=role.role_id),
row=row,
)
self.role = role