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))