Skip to content

Commit

Permalink
[Discord] Defer search wikipedia slash command response
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jul 26, 2023
1 parent a2da29e commit e75ffaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Discord/cogs/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ async def slash_wikipedia(self, interaction, *, query: str):
Search query
"""
ctx = await interaction.client.get_context(interaction)
await ctx.defer()
await self.wikipedia(ctx, query = query)

@commands.group(
Expand Down

0 comments on commit e75ffaa

Please sign in to comment.