From 25be1c4a7ed583783bee6cbc77d687c8426d6107 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 21 Nov 2023 14:25:46 -0600 Subject: [PATCH] [Discord] Remove now unnecessary message fetch in search subcommand Remove now unnecessary message fetch in search wikipedia 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 47af15ef7e..9c5c3be0bf 100644 --- a/Discord/cogs/search.py +++ b/Discord/cogs/search.py @@ -519,16 +519,11 @@ async def search_wikipedia(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) @app_commands.command(name = "wikipedia")