Skip to content
how to put make the discord bot put an image? Node.js
Profile icon
LukeArwolf

how to put make the discord bot put an image? Node.js

You are viewing a single comment. View All
Profile icon
Squirrel777

Add a folder called images, put an image in it, and add the following code:

client.on('message', msg => { if (msg.content.startsWith ('!image')) { msg.channel.send('An Image:', {files: ["./images/yourImage.png"]}); } });

Then type !image in your discord server and it will appear!