What types do slash command options allow in Pycord?

Viewed 31

In Pycord, a slash command can be defined with arguments that are type-hinted. These type-hints are sent to Discord and Discord figures out how to prompt the user for different types. An example can be seen below:

import discord

bot = discord.Bot()

@bot.command()
async def ask(ctx: discord.ApplicationContext, question_title: str):
    pass

bot.run('token')

Since question_title is type-hinted as a string, the user is prompted for a string input. I want to experiment with other types, but I'm not sure what is available. This information does not seem to be in Pycord's guide for slash commands

What types are available for these options?

1 Answers
Related