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

createMessage: docs incorrectly list "Array of strings" as parameter #1004

Closed
dmackca opened this issue Aug 22, 2020 · 1 comment
Closed
Labels

Comments

@dmackca
Copy link

dmackca commented Aug 22, 2020

(This is for v0.13.3, the latest release on npm as of this post; btw the docs on the website say they're for 0.13.2 in the title tag)

The Client.createMessage function in the docs says the content parameter can be:

String | Array | Object
A string, array of strings, or object. [...]

I wondered if an array of strings might send a random one, but it actually just throws this error:

No content, file, or embed

It doesn't look like there's anything in the code to check or handle arrays of strings here, but it's mentioned in the comments:

* @arg {String | Array | Object} content A string, array of strings, or object. If an object is passed:

@bsian03
Copy link
Collaborator

bsian03 commented Aug 22, 2020

Will fix this in #993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants