fix(forums): maybe actually fixed forums?
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
c288a1324c
commit
8c858a356e
1 changed files with 2 additions and 2 deletions
|
@ -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=int(tag.id)))
|
options.append(discord.SelectOption(label=tag.name, emoji=emoji, description="", value=tag.id))
|
||||||
return options
|
return options
|
||||||
|
|
||||||
@forumsconfig.command(name="tagset")
|
@forumsconfig.command(name="tagset")
|
||||||
|
@ -117,7 +117,7 @@ class Select(ui.Select):
|
||||||
async def callback(self, interaction: discord.Interaction):
|
async def callback(self, interaction: discord.Interaction):
|
||||||
msg: discord.Message = self.message
|
msg: discord.Message = self.message
|
||||||
config = Config.get_conf(None, cog_name='Forums', identifier=2352711325)
|
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 msg.edit(content=f"Set resolved tag to {self.values[0]}", view=None)
|
||||||
await interaction.response.defer()
|
await interaction.response.defer()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue