utility = nextcord.Embed(title="UTILITY COMMANDS", description="**support** - Bots support server \n**setprefix** - Set bots prefix for the server \n**invite** - Bot invite link \n**membercount** - Server member count [mc] ", color=nextcord.Color.blue()) music = nextcord.Embed(title="MUSIC", description=" join leave play pause resume stop loop queue volume np skip ", color=nextcord.Color.blue()) fun = nextcord.Embed(title="FUN XD", description="meme avatar",color=nextcord.Color.blue()) @client.command() async def help(ctx): helpMod = nextcord.Embed(title="**Here comes the help! click the drop down menu for more commands**",color = nextcord.Color.blue()) helpMod.add_field(name = "MODERATION", value = " **kick** - Kicks the user from the server \n**ban** - Bans the user from the server \n**unban** - Unbans the user from the server \n**mute** - Prevents user from sending messages \n**unmute** - Unmutes the user \n**clear** - Delete's Provided no of messages \n**warn** - Warns the user for breaking rules \n**warnings** - Gives the warnings of the user \n**lock** - Prevents messaging in a channel \n**unlock** - Unlocks locked channel \n**bw** - Ban a word \n**rbw** - Remove a Banned ") view = DropdownView() await ctx.send(embed=helpMod, view=view) class Dropdown(nextcord.ui.Select): def __init__(self): selectOptions = [ nextcord.SelectOption(label="UTILITY", description="My utility"), nextcord.SelectOption(label="MUSIC", description="My music :)"), nextcord.SelectOption(label="FUN", description="Fun commands XD") ] super().__init__(placeholder="OTHER COMMANDS", min_values=1, max_values=1, options=selectOptions) async def callback(self, interaction: nextcord.Interaction): if self.values[0] == "MUSIC": return await interaction.response.send_message(embed=music) if self.values[0] == "UTILITY": return await interaction.response.send_message(embed=utility) if self.values[0] == "FUN": return await interaction.response.send_message(embed=fun) await interaction.response.send_message(f'you chose {self.values[0]}') class DropdownView(nextcord.ui.View): def __init__(self): super().__init__() self.add_item(Dropdown())