owengombas / discord.ts

🤖 Create your discord bot by using TypeScript and decorators!

Home Page:https://owencalvin.github.io/discord.ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

function required to read command arguments separately

vijayymmeena opened this issue · comments

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']

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

commented

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

Closed

Reason: package is not maintained regularly.