Skip to content

Commit 50096c9

Browse files
authored
Add ...
1 parent 2b401a0 commit 50096c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/views/button_roles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313

1414
# this is the list of role IDs that will be added as buttons.
15-
role_ids = [ ]
15+
role_ids = [...]
1616

1717

1818
class RoleButton(discord.ui.Button):
@@ -63,7 +63,7 @@ def __init__(self, bot):
6363
self.bot = bot
6464

6565
# make sure to set the guild ID here to whatever server you want the buttons in
66-
@slash_command(guild_ids=[], description="Post the button role message")
66+
@slash_command(guild_ids=[...], description="Post the button role message")
6767
async def post(self, ctx: commands.Context):
6868
"""Slash command to post a new view with a button for each role
6969
"""
@@ -89,7 +89,7 @@ async def on_ready(self):
8989
# we recreate the view as we did in the /post command
9090
view = discord.ui.View(timeout=None)
9191
# make sure to set the guild ID here to whatever server you want the buttons in
92-
guild = self.bot.get_guild()
92+
guild = self.bot.get_guild(...)
9393
for role_id in role_ids:
9494
role = guild.get_role(role_id)
9595
view.add_item(RoleButton(role))

0 commit comments

Comments
 (0)