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

โปรด ลงชื่อเข้าใช้ เพื่อแสดงข้อคิดเห็น