ayhamidk
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
👌
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
And so if I use a host it should work?
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
That's clear lol
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Oh :/
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Yes, the bot is connected and has access to the channel. On the other hand, it only connects for a few seconds then it turns off, but I execute the command when it is connected
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
No.
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
😅
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
But my code is correct, right? It works for other developers
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Yes ik
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
It's good infact I didn't add the intents well but it's done. But still the same problem the bot does not answer while connected. I think I'll watch some tutorials because the one I watched is in visual studio code
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Wait pls
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Ok
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Yeah
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Okey
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
?
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
👌
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Like that ?
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
const { Client, Intents, MessageEmbed } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.MESSAGE_CONTENT.GUILD_MESSAGES] });
const prefix = 'S!';
client.on('ready', () => {
console.log('Bot opérationnel');
});
client.on('messageCreate', async message => {
const args = message.content.slice(" ")
console.log('Received message:', message.content);
if (!message.content.startsWith(prefix)) return;
if(args[0] ===
${prefix}open) {
const embed = new MessageEmbed()
.setColor('#75E6DA')
.setTitle('Test')
.setDescription('Test')
.setTimestamp();
await message.channel.send({ embeds: [embed] })
.then(() => console.log('Message sent:', embed))
.catch(console.error);
}
});
client.login("My token");
61 replies
DIAdiscord.js - Imagine an app
•Created by ayhamidk on 6/19/2023 in #djs-questions
The bot does not answer
Ok
61 replies