send file

messageCreate event. I want to when a message is created. it tells me is message video or image or no? how can I do that ?
const { Events } = require('discord.js');

module.exports = {
name: Events.MessageCreate,
async execute(message) {
//
const { Events } = require('discord.js');

module.exports = {
name: Events.MessageCreate,
async execute(message) {
//
2 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docs8mo ago
Documentation suggestion for @Tor: :property: Message#attachments A collection of attachments in the message - e.g. Pictures - mapped by their ids. (more...) :property: Attachment#contentType The media (MIME) type of this attachment
Want results from more Discord servers?
Add your server