Infinite parameters for slash commands

댓글

댓글 1개

  • LightningPirate

    You may have already figured this out but each command or subcommand supports up to 10 arguments or parameters.

    So for example your cleanup command would be registered like this:

    {
    name: 'cleanup',
    description: 'deletes messages with a given string by a given user',
    options: [
    {
    name: 'user'
    description: 'the user whose messages will be deleted',
    type: 6,
    required: true
    },
    {
    name: 'text'
    description: 'messages with this text will be deleted',
    type: 3,
    required: true
    }
    ]
    }

    1

댓글을 남기려면 로그인하세요.