fix(forums): possibly fixed typeerror in resolvedset tag
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
3ea30c2805
commit
f735637bdc
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ class Select(ui.Select):
|
||||||
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(int(self.values[0]))
|
await config.guild(msg.guild).forum_tag.set(int(self.values[0]))
|
||||||
channel: discord.ForumChannel = msg.guild.get_channel(await config.guild(msg.guild).forum_channel())
|
channel: discord.ForumChannel = msg.guild.get_channel(await config.guild(msg.guild).forum_channel())
|
||||||
tag = channel.get_tag(self.values[0])
|
tag = channel.get_tag(int(self.values[0]))
|
||||||
await msg.edit(content=f"Set resolved tag to {tag.emoji} {tag.name}", view=None)
|
await msg.edit(content=f"Set resolved tag to {tag.emoji} {tag.name}", view=None)
|
||||||
await interaction.response.defer()
|
await interaction.response.defer()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue