From bcc405f850ee880a7ed2e7371604028472f725c9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 21 Nov 2023 14:23:03 -0600 Subject: [PATCH] [Discord] Remove now unnecessary message fetch in search tolkien command --- Discord/cogs/search.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Discord/cogs/search.py b/Discord/cogs/search.py index 761e242a63..f053104c2c 100644 --- a/Discord/cogs/search.py +++ b/Discord/cogs/search.py @@ -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()