fix(forums): fixed an error in resolvedset tag
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-09-08 14:19:23 -04:00
parent 5811aec756
commit 3ea30c2805
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -198,7 +198,7 @@ class Select(ui.Select):
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(int(self.values[0])) await config.guild(msg.guild).forum_tag.set(int(self.values[0]))
channel: discord.ForumChannel = 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(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()