!" 𝑱𝒂𝒎𝒆𝒔__
!" 𝑱𝒂𝒎𝒆𝒔__
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
SIASapphire - Imagine a framework
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 1/2/2023 in #discordjs-support
Error Dashboard
this :
const app = require('express').Router();
const botsdata = require("../database/models/botlist/bots.js");

app.get("/", async (req,res) => {
res.render("index.ejs", {
bot: global.Client,
path: req.path,
config: global.config,
user: req.isAuthenticated() ? req.user : null,
req: req,
botdata: await botsdata.find(),
roles:global.config.server.roles,
channels: global.config.server.channels
})
})

module.exports = app;
const app = require('express').Router();
const botsdata = require("../database/models/botlist/bots.js");

app.get("/", async (req,res) => {
res.render("index.ejs", {
bot: global.Client,
path: req.path,
config: global.config,
user: req.isAuthenticated() ? req.user : null,
req: req,
botdata: await botsdata.find(),
roles:global.config.server.roles,
channels: global.config.server.channels
})
})

module.exports = app;
74 replies
SIASapphire - Imagine a framework
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 1/2/2023 in #discordjs-support
Error Dashboard
this :
app.engine("vcodes-xyz", ejs.renderFile);
app.engine("vcodes-xyz", ejs.renderFile);
74 replies
SIASapphire - Imagine a framework
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 1/2/2023 in #discordjs-support
Error Dashboard
I have sent you the route & renderTemplate as you requested
74 replies
SIASapphire - Imagine a framework
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 1/2/2023 in #discordjs-support
Error Dashboard
What should I send you the index.js or the server.js?
74 replies
SIASapphire - Imagine a framework
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 1/2/2023 in #discordjs-support
Error Dashboard
I have sent the code render
74 replies