Skip to content

Trying to send a file with a text message, only sends text message #321

Answered by aiko-chan-ai
WoutN2001 asked this question in Q&A
Discussion options

You must be logged in to vote

send function only accepts 1 variable
type of variable is string => message content
type of variable is object => message and option
Fix:

client.channels.cache.get('999999999999999999').send({files: [`./image.png`], content: 'Goodbye world' })

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WoutN2001
Comment options

Answer selected by WoutN2001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants