Chadoxi
Chadoxi
DIAdiscord.js - Imagine an app
Created by Chadoxi on 10/3/2022 in #djs-questions
For collections
If I switch to another vps, Discord.Collection() will be updated? Like, I added some db in an Collection, if I go to another vps, I will lost collection or no?
7 replies
DIAdiscord.js - Imagine an app
Created by Chadoxi on 7/18/2022 in #djs-questions
problem with slash commands handler
const fs = require('fs');
const {
REST
} = require('@discordjs/rest');
const {
Routes
} = require('discord-api-types/v9');
const {
clientId
} = require('./config.json');
const t = require('./config.json');

const commands = [];
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));

for (const file of commandFiles) {
const command = require(`./commands/${file}`);
commands.push(command.data.toJSON());
}

const rest = new REST({
version: '9'
}).setToken(t.token);

rest.put(Routes.applicationCommands(clientId), {
body: commands
})
.then(() => console.log('Successfully registered application commands!'))
.catch(console.error);
const fs = require('fs');
const {
REST
} = require('@discordjs/rest');
const {
Routes
} = require('discord-api-types/v9');
const {
clientId
} = require('./config.json');
const t = require('./config.json');

const commands = [];
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));

for (const file of commandFiles) {
const command = require(`./commands/${file}`);
commands.push(command.data.toJSON());
}

const rest = new REST({
version: '9'
}).setToken(t.token);

rest.put(Routes.applicationCommands(clientId), {
body: commands
})
.then(() => console.log('Successfully registered application commands!'))
.catch(console.error);
why my slashCommands isn't working?
17 replies
DIAdiscord.js - Imagine an app
Created by Chadoxi on 7/17/2022 in #djs-questions
problem with reactions
Hey, I have a remove command and I use reactions but idk reacts aren't added :/ my code: https://pastebin.com/9qTng9Cb
5 replies
DIAdiscord.js - Imagine an app
Created by Chadoxi on 7/16/2022 in #djs-questions
Problem with boost detector
if(boostchannel.guild.premiumTier === "TIER_1") {
const embed = new Discord.MessageEmbed()
.setTitle(`Nouveau boost !`)
.addField(`Booster :`, booster.toString())
.addField(`Niveau de boost du serveur :`, "3")
.addField(`Nombre de boosts sur le serveur :`, boostchannel.guild.premiumSubscriptionCount.toString() + 1)
.setImage(boostCard)
.setFooter(`Merci à toi ! ⭐`)
.setTimestamp();
boostchannel.send({embeds: [embed]})
}
if(boostchannel.guild.premiumTier === "TIER_1") {
const embed = new Discord.MessageEmbed()
.setTitle(`Nouveau boost !`)
.addField(`Booster :`, booster.toString())
.addField(`Niveau de boost du serveur :`, "3")
.addField(`Nombre de boosts sur le serveur :`, boostchannel.guild.premiumSubscriptionCount.toString() + 1)
.setImage(boostCard)
.setFooter(`Merci à toi ! ⭐`)
.setTimestamp();
boostchannel.send({embeds: [embed]})
}
when I boost my server: 4 boosts and 3 boosts before, but the bot says the server has 3 boosts when he sends the embed :/
16 replies
DIAdiscord.js - Imagine an app
Created by Chadoxi on 7/1/2022 in #djs-questions
problem with timeout
hey, when I want to check if a user is timeouted, when my bot restarts, my friend is timeouted but the bot thinks he isn't timeouted :/
17 replies