'FiFou1165 シ
DIAdiscord.js - Imagine an app
•Created by 'FiFou1165 シ on 5/12/2024 in #djs-questions
Create channel
TY so much !
6 replies
DIAdiscord.js - Imagine an app
•Created by 'FiFou1165 シ on 5/12/2024 in #djs-questions
Create channel
client.on('messageCreate', async (message) => {
if (message.content === '!createChannel') {
try {
const guild = client.guilds.cache.get('1238212673024557139');
if (!guild) return console.error('La guilde est introuvable.');
const channel = await guild.channels.create('new-general', { reason: 'Needed a cool new channel' });
console.log(
Channel créé: ${channel.name}
);
} catch (error) {
console.error('Erreur lors de la création du canal:', error);
}
}
});6 replies
DIAdiscord.js - Imagine an app
•Created by 'FiFou1165 シ on 5/12/2024 in #djs-questions
Create channel
i USE Discord js v14.15.2
----------------------------------
6 replies