Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

function required to read command arguments separately #14

Closed
vijayymmeena opened this issue Jun 4, 2020 · 3 comments
Closed

function required to read command arguments separately #14

vijayymmeena opened this issue Jun 4, 2020 · 3 comments
Labels
v4 Issue related to v4 (@Command)

Comments

@vijayymmeena
Copy link
Contributor

vijayymmeena commented Jun 4, 2020

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
Copy link

ebox86 commented Sep 3, 2020

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

@AndyClausen
Copy link
Contributor

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

@owengombas owengombas added v4 Issue related to v4 (@Command) and removed todo 🗒️ labels Jun 2, 2021
@vijayymmeena
Copy link
Contributor Author

Closed

Reason: package is not maintained regularly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
v4 Issue related to v4 (@Command)
Projects
None yet
Development

No branches or pull requests

4 participants