gradientwizzard
gradientwizzard
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 5/30/2024 in #djs-questions
Command Refresh
Could be a caching issue i guess, appreciate it Gwapes 🙂
8 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 5/30/2024 in #djs-questions
Command Refresh
Weird, I can run the deploy, shows that the commands refresh, but never updates in discord till I kick and reinvite
8 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/25/2024 in #djs-questions
Rebuild Bot Guide ID
const { SlashCommandBuilder } = require('discord.js');
const fetch = require('node-fetch');

module.exports = {
data: new SlashCommandBuilder()
.setName('fetchguilds')
.setDescription('Fetches the list of guilds the bot is in.'),
async execute(interaction) {
// Check if the user issuing the command is the bot owner
if (interaction.user.id !== '209986630654623744') {
return interaction.reply({ content: 'You do not have permission to use this command, contact GradientWizzard.', ephemeral: true });
}

// Fetch the list of guilds the bot is in
try {
const guilds = interaction.client.guilds.cache.map(guild => guild.name);
return interaction.reply({ content: `Guilds:\n${guilds.join('\n')}` });
} catch (error) {
console.error(error);
return interaction.reply({ content: 'Failed to fetch guilds.', ephemeral: true });
}
},
};
const { SlashCommandBuilder } = require('discord.js');
const fetch = require('node-fetch');

module.exports = {
data: new SlashCommandBuilder()
.setName('fetchguilds')
.setDescription('Fetches the list of guilds the bot is in.'),
async execute(interaction) {
// Check if the user issuing the command is the bot owner
if (interaction.user.id !== '209986630654623744') {
return interaction.reply({ content: 'You do not have permission to use this command, contact GradientWizzard.', ephemeral: true });
}

// Fetch the list of guilds the bot is in
try {
const guilds = interaction.client.guilds.cache.map(guild => guild.name);
return interaction.reply({ content: `Guilds:\n${guilds.join('\n')}` });
} catch (error) {
console.error(error);
return interaction.reply({ content: 'Failed to fetch guilds.', ephemeral: true });
}
},
};
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/25/2024 in #djs-questions
Rebuild Bot Guide ID
No description
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/25/2024 in #djs-questions
Rebuild Bot Guide ID
I have indeed
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/25/2024 in #djs-questions
Rebuild Bot Guide ID
Okay, so that's done, is there a way to see what guilds your discord bot has been added to?
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/25/2024 in #djs-questions
Rebuild Bot Guide ID
So, I'm guessing I just do it like this
// deploy commands!
(async () => {
try {
console.log(`Started refreshing ${commands.length} application (/) commands.`);

const data = await rest.put(
Routes.applicationGuildCommands(clientId),
{ body: commands },
);

console.log(`Successfully reloaded ${data.length} application (/) commands.`);
} catch (error) {
console.error(error);
}
})();
// deploy commands!
(async () => {
try {
console.log(`Started refreshing ${commands.length} application (/) commands.`);

const data = await rest.put(
Routes.applicationGuildCommands(clientId),
{ body: commands },
);

console.log(`Successfully reloaded ${data.length} application (/) commands.`);
} catch (error) {
console.error(error);
}
})();
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
Yeah, I'll see what I can do, appreciate it though Qjuh
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
https://github.com/leinstay/discobot would be easier to post this here
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
I'm guessing you mean this, right?
client.on('message', async message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(' ');
const command = args.shift().toLowerCase();
});
client.on('message', async message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(' ');
const command = args.shift().toLowerCase();
});
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
Managed to push it to 14.12.1 bit gotta fix the ClientMissingIntents
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
Yeh that's true, I can't seem to get djs 14 is there a certain way? cause it keeps installing 10.5.2
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
yeah, was it meant to be stable 14?
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
So I think I'm missing a dependency or something
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
No description
17 replies
DIAdiscord.js - Imagine an app
Created by gradientwizzard on 4/11/2024 in #djs-voice
Voice Connection Issue
What would be the fix?
17 replies