fix(forums): hopefully fixed how the tagset command works
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

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

View file

@ -99,7 +99,7 @@ class Forums(commands.Cog):
options = [] options = []
for tag in data: for tag in data:
emoji = ctx.guild.get_emoji(tag.emoji.id) if tag.emoji.id else str(tag.emoji.name) 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=tag.id)) options.append(discord.SelectOption(label=tag.name, emoji=emoji, description="", value=int(tag.id)))
return options return options
@forumsconfig.command(name="tagset") @forumsconfig.command(name="tagset")