From bad846027639b6eaa2d3c2a05a674fa3ac982f5c Mon Sep 17 00:00:00 2001 From: supopur Date: Sat, 11 Mar 2023 10:16:50 +0100 Subject: [PATCH] forgot the await --- cogs/example.py | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/example.py b/cogs/example.py index 6a0f125..5cbb004 100644 --- a/cogs/example.py +++ b/cogs/example.py @@ -14,7 +14,7 @@ class Greetings(commands.Cog): @commands.slash_command(guild_ids=["823188238260633600"]) async def uptime(self, ctx): #Extends the 3s limit to reply so we dont get a unknown interation error. - ctx.defer() + await ctx.defer() #References the api api = self.bot.api #Logs something using the api diff --git a/main.py b/main.py index 2f62fa0..0eb22b3 100644 --- a/main.py +++ b/main.py @@ -162,7 +162,7 @@ async def on_ready(): @bot.slash_command(guild_ids=["823188238260633600"]) async def stop(ctx): - ctx.defer() + await ctx.defer() if ctx.author.guild_permissions.administrator: print("Terminating the bot...") try: