!" 𝑱𝒂𝒎𝒆𝒔__
!" 𝑱𝒂𝒎𝒆𝒔__
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
Okay, I did it 🙂
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
MemberUpdate ?
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
Okay, but then I don't know how to go about it...
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
I made this but it doesn't work, it tells me all users mute but not the reasons.
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
I have one last question, to get the reason, how could I do it?
mutedMembers.forEach(member => {
const username = member.user.username;
const reason = member.communicationDisabledReason || "Aucune raison spécifiée"; // Replace with the actual property that stores the mute reason

embed.addFields({ name: `${username}`, value: `Raison : ${reason}`, inline: true});
});
mutedMembers.forEach(member => {
const username = member.user.username;
const reason = member.communicationDisabledReason || "Aucune raison spécifiée"; // Replace with the actual property that stores the mute reason

embed.addFields({ name: `${username}`, value: `Raison : ${reason}`, inline: true});
});
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
That's it, I did it 🙂
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
Oh yes, sorry that's me... How can I make a map to make a list?
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
I think that currently it allows to list the users who are not mute ??
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
I want to list the users who are mute on my server
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/29/2023 in #djs-questions
I have a question
I did it like this, is it good ?
const { CommandInteraction, PermissionsBitField, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Client, SelectMenuBuilder, ApplicationCommandOptionType, ChannelType } = require("discord.js");

module.exports = {
name: "mute-list",
description: "Permet de voir la liste des users mute",
owner: false,

/**
* @param {Client} client
* @param {CommandInteraction} interaction
*/

run: async (client, interaction) => {
if (!interaction.guild.members.me.permissions.has(PermissionsBitField.Flags.Administrator)) return interaction.reply({ content: `**❌ Les autorisations actuelles sur ce serveur ne me permettent pas d'utiliser cette commande**`, ephemeral: true }).catch(() => { });
if (!interaction.member.permissions.has(PermissionsBitField.Flags.Administrator)) return interaction.reply({ content: `❌ Vous n'avez pas la permissions de faire cette commande !` })

try {
const guild = interaction.guild;

await guild.members.fetch();

guild.members.cache.forEach((member) => {
if (member.isCommunicationDisabled()) {
console.log(`${member.user.tag} n'es pas timeout.`);
}
});
} catch (error) {
console.log('Une erreur est survenue sur la commande Mute-list', error)
}
}
}
const { CommandInteraction, PermissionsBitField, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Client, SelectMenuBuilder, ApplicationCommandOptionType, ChannelType } = require("discord.js");

module.exports = {
name: "mute-list",
description: "Permet de voir la liste des users mute",
owner: false,

/**
* @param {Client} client
* @param {CommandInteraction} interaction
*/

run: async (client, interaction) => {
if (!interaction.guild.members.me.permissions.has(PermissionsBitField.Flags.Administrator)) return interaction.reply({ content: `**❌ Les autorisations actuelles sur ce serveur ne me permettent pas d'utiliser cette commande**`, ephemeral: true }).catch(() => { });
if (!interaction.member.permissions.has(PermissionsBitField.Flags.Administrator)) return interaction.reply({ content: `❌ Vous n'avez pas la permissions de faire cette commande !` })

try {
const guild = interaction.guild;

await guild.members.fetch();

guild.members.cache.forEach((member) => {
if (member.isCommunicationDisabled()) {
console.log(`${member.user.tag} n'es pas timeout.`);
}
});
} catch (error) {
console.log('Une erreur est survenue sur la commande Mute-list', error)
}
}
}
23 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/27/2023 in #djs-questions
Error ; FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I already tried to do node --max_old_space_size=4096 your_script.js but this still does not work after 15/20 minutes the apps makes the error again & it restarts
7 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/27/2023 in #djs-questions
Error ; FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
What concerns me is that when I had the previous version of node js I never had this problem & as soon as I upgraded to v20 this is where the problem started
7 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/27/2023 in #djs-questions
Error ; FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I think I have shown all the elements to clarify the error I am encountering. I am waiting for your answer Thanks
7 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/27/2023 in #djs-questions
Error ; FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
My Bot is in 1400 Servers
7 replies
DIAdiscord.js - Imagine an app
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 12/27/2023 in #djs-questions
Error ; FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Version discord.js V14.10 and version Node.js : v20.10.0
7 replies