From 82d556a4e526c47ec2974a460dc67799f0992076 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 8 Sep 2023 14:12:49 -0400 Subject: [PATCH] feat(forums): reworked how resolvedset tag works, no longer takes a forumchannel argument --- forums/forums.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/forums/forums.py b/forums/forums.py index 513487f..13d1651 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -179,14 +179,12 @@ class Forums(commands.Cog): await ctx.send(f"{channel.mention} is not a forums channel!") @resolvedset.command(name="tag") - async def resolvedset_tag(self, ctx: commands.Context, channel: discord.abc.GuildChannel): + async def resolvedset_tag(self, ctx: commands.context): """Sets the tag used by the [p]resolved command.""" - if not isinstance(channel, discord.ForumChannel): - await ctx.send(f"{channel.mention} is not a forums channel!") - else: - options = self.create_select_options(ctx, channel.available_tags) - msg = await ctx.send("Select a forum tag below.") - await msg.edit(view=SelectView(msg, options)) + channel: discord.ForumChannel = ctx.guild.get_channel(await self.config.guild(ctx.guild).forum_channel()) + options = self.create_select_options(ctx, channel.available_tags) + msg = await ctx.send("Select a forum tag below.") + await msg.edit(view=SelectView(msg, options)) class Select(ui.Select): def __init__(self, message, options):