File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
"""
13
13
14
14
# this is the list of role IDs that will be added as buttons.
15
- role_ids = [ ]
15
+ role_ids = [... ]
16
16
17
17
18
18
class RoleButton (discord .ui .Button ):
@@ -63,7 +63,7 @@ def __init__(self, bot):
63
63
self .bot = bot
64
64
65
65
# 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" )
67
67
async def post (self , ctx : commands .Context ):
68
68
"""Slash command to post a new view with a button for each role
69
69
"""
@@ -89,7 +89,7 @@ async def on_ready(self):
89
89
# we recreate the view as we did in the /post command
90
90
view = discord .ui .View (timeout = None )
91
91
# 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 (... )
93
93
for role_id in role_ids :
94
94
role = guild .get_role (role_id )
95
95
view .add_item (RoleButton (role ))
You can’t perform that action at this time.
0 commit comments