We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sync_commands_globally
1 parent fd9dffa commit ca3ed84Copy full SHA for ca3ed84
bot.py
@@ -101,6 +101,9 @@ async def on_ready() -> None:
101
print(f"Running on: {platform.system()} {platform.release()} ({os.name})")
102
print("-------------------")
103
status_task.start()
104
+ if config["sync_commands_globally"]:
105
+ print("Syncing commands globally...")
106
+ await bot.tree.sync()
107
108
109
@tasks.loop(minutes=1.0)
config.json
@@ -3,6 +3,7 @@
3
"token": "YOUR_BOT_TOKEN_HERE",
4
"permissions": "YOUR_BOT_PERMISSIONS_HERE",
5
"application_id": "YOUR_APPLICATION_ID_HERE",
6
+ "sync_commands_globally": false,
7
"owners": [
8
123456789,
9
987654321
0 commit comments