From 546caca3e693c8bd03a983ff0baee4a50e878e16 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 1 Sep 2023 22:20:09 -0400 Subject: [PATCH] fix(forums): tag is now stored as an ID instead of a ForumTag object --- forums/forums.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forums/forums.py b/forums/forums.py index c7bd198..e3217f9 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -108,7 +108,7 @@ class Forums(commands.Cog): # Create select options from the proxy data 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().name + tag = channel.get_tag(await config.guild(ctx.guild).forum_tag()) msg = await ctx.send(f"Forum tag is currently set to `{tag}`.") await msg.edit(view=SelectView(msg, options)) @@ -121,7 +121,7 @@ class Select(ui.Select): msg: discord.Message = self.message await interaction.response.defer() config = Config.get_conf(None, cog_name='Forums', identifier=2352711325) - config.guild(msg.guild).set.forum_tag(self.values[0]) + config.guild(msg.guild).set.forum_tag(self.values[0].id) await msg.edit(f"Set resolved tag to {self.values[0]}", view=None) class SelectView(ui.View):