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: