Skip to content

Commit

Permalink
[Discord] Remove now unnecessary message fetch in search tolkien command
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Nov 21, 2023
1 parent ca95346 commit bcc405f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Discord/cogs/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,16 +724,11 @@ async def search_tolkien(self, ctx, *, query: str):
return

view = WikiArticlesView(articles)
message = await ctx.reply(
view.message = await ctx.reply(
"",
embed = await view.initial_embed(ctx),
view = view
)

if ctx.interaction:
# Fetch Message, as InteractionMessage token expires after 15 min.
message = await message.fetch()
view.message = message
ctx.bot.views.append(view)

@commands.command()
Expand Down

0 comments on commit bcc405f

Please sign in to comment.