We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a5046c + 09f1d45 commit 99870a1Copy full SHA for 99870a1
src/oneiro/bot.py
@@ -251,6 +251,14 @@ async def on_config_change(new_config: dict[str, Any]) -> None:
251
252
# Start config file watching
253
await config.start_watching()
254
+
255
+ # Sync slash commands to all guilds for instant availability
256
+ # (global commands can take up to 1 hour to propagate)
257
+ if bot.guilds:
258
+ guild_ids = [g.id for g in bot.guilds]
259
+ await bot.sync_commands(guild_ids=guild_ids)
260
+ print(f"Commands synced to {len(guild_ids)} guild(s): {[g.name for g in bot.guilds]}")
261
262
print("Ready to generate images!")
263
264
@bot.event
0 commit comments