Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Args not recognized when space is not the delimiter #108

Closed
HunteRoi opened this issue Oct 22, 2024 · 0 comments · Fixed by #109
Closed

Args not recognized when space is not the delimiter #108

HunteRoi opened this issue Oct 22, 2024 · 0 comments · Fixed by #109
Assignees
Labels
bug Something isn't working

Comments

@HunteRoi
Copy link
Member

command.execute(client, message, message.content.split(' ').slice(1));

The code splits on a space. However, if you are using other delimiters like newlines (e.g. calling the announce), then recognizing
(1) the command
(2) the args
will not work as we don't take account of the newline delimiter.

Example:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants