Joni
Joni
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
Thanks for the help I waited a while and now it works again and I adjusted my code so that it doesn't refresh the commands every time.
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
Yes I will do that
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
Okay, thanks for the information, I'll wait 24 hours and if it works, I'll be very grateful to you and if not, I'll get back to you
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
No description
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
but can there also only be one guild ratelimited because all the others are working?
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
yes i know i will fix the ha later but i just have the problem with a guild
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
No description
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
But my bot manages so many guilds with many different commands.
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
I have also tried to start only this one guild but it does not work for this guild.
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
No description
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
but every time I restart I make changes and it has always worked for a year but suddenly it no longer works.
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
Yes
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 10/20/2023 in #djs-questions
My one Guild commands Handler are stuck in refreshing
const fs = require('fs'); const { REST, Routes } = require('discord.js'); const clientId = (process.env.DISCORD_APPLICATION_ID); const guildId = ("809535850710302770"); module.exports = (client) => { client.handleCommands = async (commandFolders, path) => { client.commandArray = []; for (folder of commandFolders) { const commandFiles = fs.readdirSync(${path}/${folder}).filter(file => file.endsWith('.js')); for (const file of commandFiles) { const command = require(../commands/${folder}/${file}); // Set a new item in the Collection // With the key as the command name and the value as the exported module client.commands.set(command.data.name + -${guildId}, command); client.commandArray.push(command.data.toJSON()); } } const rest = new REST({version: '10'}).setToken(process.env.token); (async () => { try { console.log('Started refreshing application (/) commands.');
const response = await rest.put( Routes.applicationGuildCommands(clientId, guildId), { body: client.commandArray }, );
console.log('Successfully reloaded application (/) commands:', response); } catch (error) { console.error('Error while reloading application (/) commands:', error); } })();
} }
33 replies
DIAdiscord.js - Imagine an app
Created by Joni on 7/26/2022 in #djs-questions
setInterval in an event
yes this works thx man
50 replies
DIAdiscord.js - Imagine an app
Created by Joni on 7/26/2022 in #djs-questions
setInterval in an event
50 replies
DIAdiscord.js - Imagine an app
Created by Joni on 7/26/2022 in #djs-questions
setInterval in an event
50 replies
DIAdiscord.js - Imagine an app
Created by Joni on 7/26/2022 in #djs-questions
setInterval in an event
50 replies
DIAdiscord.js - Imagine an app
Created by Joni on 7/26/2022 in #djs-questions
setInterval in an event
oh okay thx i try it later I have to go to an appointment now
50 replies
DIAdiscord.js - Imagine an app
Created by Joni on 7/26/2022 in #djs-questions
setInterval in an event
but then the embed will be deleted or not
50 replies
DIAdiscord.js - Imagine an app
Created by Joni on 7/26/2022 in #djs-questions
setInterval in an event
Yes, the 10th was just to try it out. I would actually like to have a channel where every 30 minutes everything except the embed is deleted by the bot
50 replies