AlexzanderFlores / WOKCommands

130 stars 60 forks source link

Allow users select type of slash command arguments #65

Open karelkryda opened 3 years ago

karelkryda commented 3 years ago

This will allow users specify slash command params like this

expectedArgs: [
        {
            "type": 8,
            "name": "role",
            "description": "user role",
            "required": "true"
        },
        {
            "type": 6,
            "name": "user",
            "description": "specify user",
            "required": "false"
        }
    ],
karelkryda commented 3 years ago

Also check this PR https://github.com/AlexzanderFlores/WOKCommands/pull/66

karelkryda commented 3 years ago

@theo-bnts better?

Shadowsniper784 commented 3 years ago

Or you could add a option parameter for slash commands that overrides expectedArgs

karelkryda commented 3 years ago

Or you could add a option parameter for slash commands that overrides expectedArgs

First of all, I apologize for the late response.

Personally, I think this is the easiest way to implement it. But if you insist on adding an argument, I'll do it.