owengombas / discord.ts

🤖 Create your discord bot by using TypeScript and decorators!
https://owencalvin.github.io/discord.ts/
325 stars 40 forks source link

function required to read command arguments separately #14

Closed vijayymmeena closed 3 years ago

vijayymmeena commented 4 years ago

this is example of command

when we define command name without slug like

@Command("cmd") // and then we retrieve it with `command.commandName, it returns cmd

but when we do the same thing with arguments

@Command("cmd :slug") and then we retrieve it with `command.commandName, it returns cmd :slug

in runtime command name is cmd. There should be solution to get command name and arguments separately

Suggested solution: return command name with command.commandName but make another function command.commandArguments which returns the arguments in array format.

//command.commandName cmd

//command.commandArguments ['slug']

ebox86 commented 4 years ago

Any update on this? i hit the same problem today.

AndyClausen commented 3 years ago

Should not be a problem in slash commands version (5.x)

vijayymmeena commented 3 years ago

Closed

Reason: package is not maintained regularly.