#pls help

1 messages · Page 1 of 1 (latest)

unique stratus
#

A command failed to sync. Show any new commands you've added since the last time you started the bot

unique stratus
#

code..

#

for commands you've added/created

#

You have options for message and also message as an argument. You don't need the options part in the slash command decorator.

somber imp
#

That is, should I remove options?

unique stratus
#

yes.

#

And you don't need the length check.

somber imp
unique stratus
#

You can use commands.Param to set the argument with a max length

#

Then it can't even send the command until the message fits within the max limit:

#
async def chatgpt(inter: disnake.ApplicationCommandInteraction, message: str = commands.Param(max_length=150)) -> None:
  ...
#

also..