aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2023-03-12 17:47:25 +0100
committerGravatar GitHub <[email protected]>2023-03-12 17:47:25 +0100
commit81d318270937532d154c1b2b1ebefa923de95619 (patch)
treec7a769b7172ef6a47fa5d01c4d7291ed25deb2da
parentMerge pull request #2455 from python-discord/dependabot/pip/aiohttp-3.8.4 (diff)
parentremove CUSTOM_ID_FORMAT (diff)
Merge pull request #2465 from shtlrs/fix-persistent-roles-view-bug
Fix broken roles view
-rw-r--r--bot/exts/info/subscribe.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/bot/exts/info/subscribe.py b/bot/exts/info/subscribe.py
index 7f4b4f95a..aff1302bb 100644
--- a/bot/exts/info/subscribe.py
+++ b/bot/exts/info/subscribe.py
@@ -100,7 +100,6 @@ class SingleRoleButton(discord.ui.Button):
REMOVE_STYLE = discord.ButtonStyle.red
UNAVAILABLE_STYLE = discord.ButtonStyle.secondary
LABEL_FORMAT = "{action} role {role_name}"
- CUSTOM_ID_FORMAT = "subscribe-{role_id}"
def __init__(self, role: AssignableRole, assigned: bool, row: int):
if role.is_currently_available():
@@ -113,7 +112,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