Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix
Browse files
app.py
CHANGED
|
@@ -597,7 +597,7 @@ async def role_buttons(ctx):
|
|
| 597 |
return
|
| 598 |
|
| 599 |
# List the role IDs you want to include (replace these with your actual role IDs).
|
| 600 |
-
role_ids = [1014517792550166630, 1014548568238997616, 1014548769355862036, 1077250031180071023, 1093982736961785877, 1359533406102487281, 1174686719166124168,
|
| 601 |
roles = [ctx.guild.get_role(rid) for rid in role_ids if ctx.guild.get_role(rid) is not None]
|
| 602 |
|
| 603 |
# Create the persistent view.
|
|
@@ -637,7 +637,7 @@ async def on_ready():
|
|
| 637 |
guild = bot.get_guild(879548962464493619)
|
| 638 |
|
| 639 |
if guild:
|
| 640 |
-
role_ids = [
|
| 641 |
roles = [guild.get_role(rid) for rid in role_ids if guild.get_role(rid) is not None]
|
| 642 |
persistent_view = PersistentRoleSelectionView(roles)
|
| 643 |
bot.add_view(persistent_view) # This makes the view persistent across restarts.
|
|
|
|
| 597 |
return
|
| 598 |
|
| 599 |
# List the role IDs you want to include (replace these with your actual role IDs).
|
| 600 |
+
role_ids = [1014517792550166630, 1014548568238997616, 1014548769355862036, 1077250031180071023, 1093982736961785877, 1359533406102487281, 1174686719166124168, 1361696873764618381]
|
| 601 |
roles = [ctx.guild.get_role(rid) for rid in role_ids if ctx.guild.get_role(rid) is not None]
|
| 602 |
|
| 603 |
# Create the persistent view.
|
|
|
|
| 637 |
guild = bot.get_guild(879548962464493619)
|
| 638 |
|
| 639 |
if guild:
|
| 640 |
+
role_ids = [1014517792550166630, 1014548568238997616, 1014548769355862036, 1077250031180071023, 1093982736961785877, 1359533406102487281, 1174686719166124168, 1361696873764618381]
|
| 641 |
roles = [guild.get_role(rid) for rid in role_ids if guild.get_role(rid) is not None]
|
| 642 |
persistent_view = PersistentRoleSelectionView(roles)
|
| 643 |
bot.add_view(persistent_view) # This makes the view persistent across restarts.
|