fix(forums): hopefully fixed the message not being edited?
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
ec9d8db31f
commit
cfc2e86bca
1 changed files with 3 additions and 3 deletions
|
@ -119,12 +119,12 @@ 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
|
||||||
await interaction.response.defer()
|
|
||||||
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).set.forum_tag(self.values[0].id)
|
await config.guild(msg.guild).set.forum_tag(self.values[0].id)
|
||||||
await msg.edit(f"Set resolved tag to {self.values[0]}", view=None)
|
await msg.edit(f"Set resolved tag to {self.values[0]}", view=None)
|
||||||
|
await interaction.response.defer()
|
||||||
|
|
||||||
class SelectView(ui.View):
|
class SelectView(ui.View):
|
||||||
def __init__(self, msg, options, *, timeout=180):
|
def __init__(self, message, options, *, timeout=180):
|
||||||
super().__init__(timeout=timeout)
|
super().__init__(timeout=timeout)
|
||||||
self.add_item(Select(msg, options))
|
self.add_item(Select(message, options))
|
||||||
|
|
Loading…
Reference in a new issue