'Multi word discord slash commands (PyCord)

I'm making a simple set of slash commands using pycord for discord.

import discord


bot = discord.Bot()

testingServer = [{server ID}]

@bot.slash_command(guild_ids = testingServer, name ="verify_help", description="blabla" )
async def verifyHelp(ctx):

    embed=discord.Embed(title="Verify Your Wallet", description = "help goes here",color=0xffffff)


    await ctx.respond(embed = embed, ephemeral=True)

bot.run({TOKEN})

I believe it's possible to create multi word slash commands as seen in discords API docs:

ie have the slash command as /verify help rather than /verify-help

https://discord.com/developers/docs/interactions/application-commands

I believe i need to translate the "Options" section into pycord but have no idea on the syntax. It suggest and options list so options = []. Which is where i am stuck.

The pycord manual for slashcommand is here: https://docs.pycord.dev/en/master/api.html#slashcommand



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source