import discpy
from discpy import commands

bot = commands.Bot(command_prefix='!')

# you can set "arg" keyword argument to the name of argument that represents the option in the command function
# and then change the option name as desired.
@bot.slash_command()
@discpy.application.option('sentence', arg='text', description='The text to say!')
async def say(ctx, text):
  await ctx.respond(f'{ctx.author.name} said: {text}')

# in above command, the option name in discord will appear "sentence" but in this function, it will
# be passed to text argument


bot.run('token')

import discpy
from discpy import commands

bot = commands.Bot(command_prefix='!')

# you can set "arg" keyword argument to the name of argument that represents the option in the command function
# and then change the option name as desired.
@bot.slash_command()
@discpy.application.option('sentence', arg='text', description='The text to say!')
async def say(ctx, text):
  await ctx.respond(f'{ctx.author.name} said: {text}')

# in above command, the option name in discord will appear "sentence" but in this function, it will
# be passed to text argument


bot.run('token')

# you can set "arg" keyword argument to the name of argument that represents the option in the command function # and then change the option name as desired. # in above command, the option name in discord will appear "sentence" but in this function, it will # be passed to text argument