diff --git a/forums/forums.py b/forums/forums.py index fdff9b7..5a833b9 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -96,17 +96,17 @@ class Forums(commands.Cog): await ctx.send("Please provide a valid role that exists in the request roles list.") # Function to create select options - def create_select_options(self, data): + def create_select_options(self, ctx: commands.Context, data): options = [] for tag in data: - 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="")) return options @forumsconfig.command() async def forumsconfig_tag_set(self, ctx, channel: discord.ForumChannel): # Create select options from the proxy data - options = self.create_select_options(channel.available_tags) + options = self.create_select_options(ctx, channel.available_tags) await ctx.send("Menus!", view=SelectView(options))