From 474db871840e6cd3b6d5f5bc995fbe3f193861a8 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 18 Oct 2022 12:31:17 -0700 Subject: [PATCH] force register commands on ready --- app/bot.py | 3 ++- app/cogs/actual_utils.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/bot.py b/app/bot.py index bfdaa646..4911f119 100755 --- a/app/bot.py +++ b/app/bot.py @@ -32,7 +32,8 @@ async def on_ready(): ), ) if os.getenv("DRAGON_ENV") == "prod": - await bot.register_commands(guild_id=core_utils.my_guilds, force=True) + for guild in bot.guilds: + await bot.register_commands(guild_id=guild.id, force=True) await bot.get_channel(152921472304676865).send("I have reconnected") diff --git a/app/cogs/actual_utils.py b/app/cogs/actual_utils.py index 7b697bc8..d6842bb2 100644 --- a/app/cogs/actual_utils.py +++ b/app/cogs/actual_utils.py @@ -82,7 +82,7 @@ class ActualUtils(commands.Cog): @commands.slash_command( guild_ids=core_utils.my_guilds, name="sd", - description="Pass a prompt and optinal negative prompt to stable diffusion", + description="Pass a prompt and optional negative prompt to stable diffusion", ) @option( "positive_prompt",