Pagani
Pagani
DIAdiscord.js - Imagine an app
Created by Pagani on 2/29/2024 in #djs-questions
How to check if message contains images/other files
My bot crashes everytime it tries to copy a message from me and I attach a file to my message.
client.on('messageCreate', (message) => {
if(message.author.bot) return;
if(typeof message.content !== 'string'){
client.on('messageCreate', (message) => {
if(message.author.bot) return;
if(typeof message.content !== 'string'){
I'm very new to this sorry
3 replies