aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2022-11-27 17:43:13 +0100
committerGravatar shtlrs <[email protected]>2022-11-27 17:43:13 +0100
commit6c61d34ff6ded0a744d4d6304ae0fc8a41ec204c (patch)
tree939fc5583a29a0d843d9bf130a8c00af0b64d47e
parentrestore original value of DELETE_MESSAGE_AFTER (diff)
rename ClaimAllSelfAssignableRolesButton to ShowAllSelfAssignableRolesButton
-rw-r--r--bot/exts/info/subscribe.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/exts/info/subscribe.py b/bot/exts/info/subscribe.py
index dd676080b..c68207e1c 100644
--- a/bot/exts/info/subscribe.py
+++ b/bot/exts/info/subscribe.py
@@ -153,15 +153,15 @@ class AllSelfAssignableRolesView(discord.ui.View):
super(AllSelfAssignableRolesView, self).__init__(timeout=None)
-class ClaimAllSelfAssignableRolesButton(discord.ui.Button):
- """A button that adds all self assignable roles to the interactor."""
+class ShowAllSelfAssignableRolesButton(discord.ui.Button):
+ """A button that sends a view containing all the different roles a user can self assign at that time."""
CUSTOM_ID = "gotta-claim-them-all"
def __init__(self, assignable_roles: list[AssignableRole]):
super().__init__(
style=discord.ButtonStyle.success,
- label="Claim all available roles",
+ label="Show available roles",
custom_id=self.CUSTOM_ID,
row=1
)
@@ -246,7 +246,7 @@ class Subscribe(commands.Cog):
log.debug("Self assignable roles view message hasn't been found, creating a new one.")
view = AllSelfAssignableRolesView()
- view.add_item(ClaimAllSelfAssignableRolesButton(self.assignable_roles))
+ view.add_item(ShowAllSelfAssignableRolesButton(self.assignable_roles))
return await roles_channel.send(self.SELF_ASSIGNABLE_ROLES_MESSAGE, view=view)
def __attach_view_to_initial_self_assignable_roles_message(self, message: discord.Message) -> None:
@@ -256,7 +256,7 @@ class Subscribe(commands.Cog):
The message is searched for/created upon loading the Cog.
"""
view = AllSelfAssignableRolesView()
- view.add_item(ClaimAllSelfAssignableRolesButton(self.assignable_roles))
+ view.add_item(ShowAllSelfAssignableRolesButton(self.assignable_roles))
self.bot.add_view(view, message_id=message.id)