s a k a  t a
s a k a t a
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
i still dont see the command on my /
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
mb
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
i got an error
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
got a pb w my embed again :>
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
i found the way on the guide but wait
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
okay mb i followed an old guide im dumb
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
it dosnt show me any error
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
when i press the command like this
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
idk if you need anything else
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
const Discord = require('discord.js');


const prefix = '!';
const cooldownTime = 60000;


const cooldowns = new Discord.Collection();

function sendEmbedToChannel(message) {
if (message.author.bot) return;
if (!message.content.startsWith(prefix)) return;

const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();

if (command === 'classes') {
if (cooldowns.has(message.author.id)) {
const remainingTime = cooldownTime - (Date.now() - cooldowns.get(message.author.id));
message.channel.send(`La commande est en cooldown. Veuillez attendre ${remainingTime / 1000} secondes avant de renvoyer la commande.`);
return;
}

cooldowns.set(message.author.id, Date.now());
setTimeout(() => cooldowns.delete(message.author.id), cooldownTime);

const embed = new Discord.MessageEmbed()
.setColor('#0099ff')
.setTitle('Titre de l\'embed')
.setDescription('Description de l\'embed')
.addField('Champ 1', 'Contenu du champ 1', true)
.addField('Champ 2', 'Contenu du champ 2', true)
.addField('Champ 3', 'Contenu du champ 3')
.setTimestamp()
.setFooter('Texte du pied de page', 'URL de l\'image du pied de page');

message.channel.send(embed);
}
}

module.exports = {
sendEmbedToChannel,
prefix,
cooldownTime,
};
const Discord = require('discord.js');


const prefix = '!';
const cooldownTime = 60000;


const cooldowns = new Discord.Collection();

function sendEmbedToChannel(message) {
if (message.author.bot) return;
if (!message.content.startsWith(prefix)) return;

const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();

if (command === 'classes') {
if (cooldowns.has(message.author.id)) {
const remainingTime = cooldownTime - (Date.now() - cooldowns.get(message.author.id));
message.channel.send(`La commande est en cooldown. Veuillez attendre ${remainingTime / 1000} secondes avant de renvoyer la commande.`);
return;
}

cooldowns.set(message.author.id, Date.now());
setTimeout(() => cooldowns.delete(message.author.id), cooldownTime);

const embed = new Discord.MessageEmbed()
.setColor('#0099ff')
.setTitle('Titre de l\'embed')
.setDescription('Description de l\'embed')
.addField('Champ 1', 'Contenu du champ 1', true)
.addField('Champ 2', 'Contenu du champ 2', true)
.addField('Champ 3', 'Contenu du champ 3')
.setTimestamp()
.setFooter('Texte du pied de page', 'URL de l\'image du pied de page');

message.channel.send(embed);
}
}

module.exports = {
sendEmbedToChannel,
prefix,
cooldownTime,
};
22 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
how can i scan my subfolder?
38 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
i mean
38 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
i already did that?
38 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
just the way to scan my directories
38 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
do you know how can i fix that?
38 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
i think i just fuck my code at a point but idk when
38 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
how can i do to put them in subfolders
38 replies
DIAdiscord.js - Imagine a boo! 👻
Created by s a k a t a on 7/24/2023 in #djs-questions
Problem w my /ping Slash command
mb for thhe first one idk, and idk ab the subfolders, one people said i have to put them in sub, then u say i dont have to idk anymore
38 replies