From d36f42e8b919bec70c75c5c6859c32f05607c8b8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 1 Sep 2023 22:15:42 -0400 Subject: [PATCH] fix(forums): hopefully fixed a bug in argument declarations --- forums/forums.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/forums/forums.py b/forums/forums.py index 3526fe0..084db86 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -109,7 +109,8 @@ class Forums(commands.Cog): options = self.create_select_options(ctx, channel.available_tags) config = Config.get_conf(None, cog_name='Forums', identifier=2352711325) tag = config.guild(ctx.guild).forum_tag() - msg = await ctx.send(f"Forum tag is currently set to `{tag}`.", view=SelectView(msg, options)) + msg = await ctx.send(f"Forum tag is currently set to `{tag}`.") + await msg.edit(view=SelectView(msg, options)) class Select(ui.Select): def __init__(self, message, options): @@ -124,6 +125,6 @@ class Select(ui.Select): await msg.edit(f"Set resolved tag to {self.values[0]}", view=None) class SelectView(ui.View): - def __init__(self, options, *, timeout=180): + def __init__(self, msg, options, *, timeout=180): super().__init__(timeout=timeout) - self.add_item(Select(options)) + self.add_item(Select(msg, options))