forgot the await

main
supopur 2 years ago
parent ae563158b7
commit bad8460276

@ -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

@ -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:

Loading…
Cancel
Save