Skip to content

Commit

Permalink
meta: respond before syncing applications
Browse files Browse the repository at this point in the history
prevents timeouts
  • Loading branch information
jerbmega committed Dec 8, 2022
1 parent 743caf0 commit 50890a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ async def load(ctx: lightbulb.Context) -> None:
@lightbulb.command("resync_commands", "Resyncs slash commands with Discord")
@lightbulb.implements(lightbulb.SlashCommand)
async def resync_commands(ctx: lightbulb.Context) -> None:
await ctx.respond("Working...")
await ctx.bot.sync_application_commands()
await ctx.respond("Done.")
await ctx.edit_last_response("Done.")


def load(bot):
Expand Down

0 comments on commit 50890a4

Please sign in to comment.