Marion Maréchal
Marion Maréchal
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/16/2024 in #djs-questions
how can recive content of modal ?
how can recive content of modal please?
14 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/12/2024 in #djs-questions
MODAL
hey, how can add textlabel in modal please?
15 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/11/2024 in #djs-questions
slash commands
how can creat slash command with open popup(modal) ? pls
18 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 1/5/2024 in #djs-questions
targetchannel.send is not a function
await client.guilds.cache.map(guild => {
guild.channels.cache.forEach(async channel => {
try {
const targetchannel = client.channels.cache.get(channel.id);
if (targetchannel.permissionsFor(client.user).has("SEND_MESSAGES")) {
await targetchannel.send(messageContent)
nmsgsend = nmsgsend + 1
}
} catch (e) {
console.log(e);
}
});
});
await client.guilds.cache.map(guild => {
guild.channels.cache.forEach(async channel => {
try {
const targetchannel = client.channels.cache.get(channel.id);
if (targetchannel.permissionsFor(client.user).has("SEND_MESSAGES")) {
await targetchannel.send(messageContent)
nmsgsend = nmsgsend + 1
}
} catch (e) {
console.log(e);
}
});
});
that give error targetchannel.send is not a function, why ?
13 replies