From 8c858a356e34eaccd870781a6124676676ce74d2 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Sep 2023 18:55:49 -0400 Subject: [PATCH] fix(forums): maybe actually fixed forums? --- forums/forums.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forums/forums.py b/forums/forums.py index f00938f..7734e87 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -99,7 +99,7 @@ class Forums(commands.Cog): options = [] for tag in data: emoji = ctx.guild.get_emoji(tag.emoji.id) if tag.emoji.id else str(tag.emoji.name) - options.append(discord.SelectOption(label=tag.name, emoji=emoji, description="", value=int(tag.id))) + options.append(discord.SelectOption(label=tag.name, emoji=emoji, description="", value=tag.id)) return options @forumsconfig.command(name="tagset") @@ -117,7 +117,7 @@ class Select(ui.Select): async def callback(self, interaction: discord.Interaction): msg: discord.Message = self.message config = Config.get_conf(None, cog_name='Forums', identifier=2352711325) - await config.guild(msg.guild).forum_tag.set(self.values[0]) + await config.guild(msg.guild).forum_tag.set(int(self.values[0])) await msg.edit(content=f"Set resolved tag to {self.values[0]}", view=None) await interaction.response.defer()