diff --git a/forums/forums.py b/forums/forums.py index 7fe372a..71c5dcb 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -119,12 +119,12 @@ class Select(ui.Select): async def callback(self, interaction: discord.Interaction): msg: discord.Message = self.message - await interaction.response.defer() config = Config.get_conf(None, cog_name='Forums', identifier=2352711325) 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 interaction.response.defer() class SelectView(ui.View): - def __init__(self, msg, options, *, timeout=180): + def __init__(self, message, options, *, timeout=180): super().__init__(timeout=timeout) - self.add_item(Select(msg, options)) + self.add_item(Select(message, options))