Skip to content

Commit

Permalink
Deferring suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsbirb committed Mar 12, 2024
1 parent b5efbb0 commit bc0e15c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cogs/Modules/suggestions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async def modulecheck(self, ctx):

@commands.hybrid_command(description="Submit a suggestion for improvement")
async def suggest(self, ctx, suggestion: str):
await ctx.defer(ephemeral=True)
if not await self.modulecheck(ctx):
await ctx.send(f"{no} **{ctx.author.display_name}**, this module is currently disabled.", allowed_mentions=discord.AllowedMentions.none())
return
Expand Down

0 comments on commit bc0e15c

Please sign in to comment.