diff --git a/cogs/owner/sync.py b/cogs/owner/sync.py index a381865..4af2762 100644 --- a/cogs/owner/sync.py +++ b/cogs/owner/sync.py @@ -13,6 +13,7 @@ def __init__(self, bot: TakoBot): @commands.hybrid_command(description="Sync all slash commands") @commands.is_owner() async def sync(self, ctx): + await ctx.defer(ephemeral=True) if hasattr(bot_secrets, "TEST_GUILD"): self.bot.tree.copy_global_to( guild=discord.Object(id=bot_secrets.TEST_GUILD) # type: ignore @@ -20,7 +21,7 @@ async def sync(self, ctx): await self.bot.tree.sync(guild=discord.Object(id=bot_secrets.TEST_GUILD)) # type: ignore else: await self.bot.tree.sync() - await ctx.reply("Successfully synced!", ephemeral=True) + await ctx.followup.send("Successfully synced!", ephemeral=True) @sync.error async def on_command_error(