fix(forums): testing another fix to the tagset command
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-09-07 18:41:59 -04:00
parent 85411ef585
commit 355cec9eff
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -105,8 +105,7 @@ class Forums(commands.Cog):
@forumsconfig.command(name="tagset") @forumsconfig.command(name="tagset")
async def forumsconfig_tag_set(self, ctx: commands.Context, channel: discord.ForumChannel): async def forumsconfig_tag_set(self, ctx: commands.Context, channel: discord.ForumChannel):
options = self.create_select_options(ctx, channel.available_tags) options = self.create_select_options(ctx, channel.available_tags)
config = Config.get_conf(None, cog_name='Forums', identifier=2352711325) tag = channel.get_tag(await self.config.guild(ctx.guild).forum_tag())
tag = channel.get_tag(await config.guild(ctx.guild).forum_tag())
msg = await ctx.send(f"Forum tag is currently set to `{str(tag)}`.") msg = await ctx.send(f"Forum tag is currently set to `{str(tag)}`.")
await msg.edit(view=SelectView(msg, options)) await msg.edit(view=SelectView(msg, options))