F
F
FurryFandom2020-06-27 20:09:58
Node.js
FurryFandom, 2020-06-27 20:09:58

How to force a bot to send a picture to Discord?

When creating a chat bot, I thought about making it send a photo as well, but it just sends .txt. Created in Javascript, Node.js. But I can't render the image. How?
(Preferably answer by code itself)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-06-27
@FurryFandom

message.channel.send("Сообщение с картинкой", {files: ["url_картинки"]});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question