File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
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 = [
16
- 846383888003760217 , 846383888036134932
17
- ]
15
+ role_ids = [...]
18
16
19
17
20
18
class RoleButton (discord .ui .Button ):
@@ -65,7 +63,7 @@ def __init__(self, bot):
65
63
self .bot = bot
66
64
67
65
# make sure to set the guild ID here to whatever server you want the buttons in
68
- @slash_command (guild_ids = [846383887973482516 ], description = "Post the button role message" )
66
+ @slash_command (guild_ids = [... ], description = "Post the button role message" )
69
67
async def post (self , ctx : commands .Context ):
70
68
"""Slash command to post a new view with a button for each role
71
69
"""
@@ -91,7 +89,7 @@ async def on_ready(self):
91
89
# we recreate the view as we did in the /post command
92
90
view = discord .ui .View (timeout = None )
93
91
# make sure to set the guild ID here to whatever server you want the buttons in
94
- guild = self .bot .get_guild (846383887973482516 )
92
+ guild = self .bot .get_guild (... )
95
93
for role_id in role_ids :
96
94
role = guild .get_role (role_id )
97
95
view .add_item (RoleButton (role ))
You can’t perform that action at this time.
0 commit comments