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

CommandMessage: commandContent ("-cmd hello there" => "hello there") #13

Open
owengombas opened this issue Jun 4, 2020 · 3 comments
Open
Labels
enhancement New feature or request v4 Issue related to v4 (@Command)

Comments

@owengombas
Copy link
Owner

this is example of command

-cmd hello there
I know we can read the parameters by slug
cmd :text :text2

but I wish to read full text
hello there

I can replace -cmd

but is there any alternative solution?

By Harry

@owengombas owengombas added enhancement New feature or request todo 🗒️ labels Jun 4, 2020
@owengombas
Copy link
Owner Author

@vijayymmeena
Copy link
Contributor

there is a problem with commit, command.commandContent is only output without prefix only

current passed regex for command `-cmd hello there`` is

/^-/i

expected output

/^-([\w-]+)\s

@owengombas owengombas reopened this Jun 5, 2020
@orangixx
Copy link

orangixx commented Dec 8, 2020

message.content.split(' ').slice(1).join(' ')

@owengombas owengombas added v4 Issue related to v4 (@Command) and removed todo 🗒️ labels Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request v4 Issue related to v4 (@Command)
Projects
None yet
Development

No branches or pull requests

3 participants