#description for options
1 messages · Page 1 of 1 (latest)
typehint the parameter with discord.Option([data type], [description])
umm, smth like this?
@bot.slash_command(description="Clears 100 messages.")
@commands.has_permissions(manage_messages=True)
async def clearall(ctx, target: discord.Member=None):
discord.Option([target], ["Delete all messages from this member"])
like this?
async def clearall(ctx, target: discord.Member=None):
discord.Option(str, "Delete all messages from this member")
.
just read this https://docs.pycord.dev/en/master/api.html#discord.Option
and this https://guide.pycord.dev/interactions/application-commands/slash-commands#options--option-types
Learn all about Slash Commands and how to implement them into your Discord Bot with Pycord!