V2
V2
DIAdiscord.js - Imagine an app
Created by V2 on 10/22/2023 in #djs-questions
return client class as promise
I figure it out
4 replies
DIAdiscord.js - Imagine an app
Created by V2 on 10/22/2023 in #djs-questions
return client class as promise
bot.util:
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildIntegrations] });

client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});


client.login(process.env.BOT_TOKEN);

module.exports = client
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildIntegrations] });

client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});


client.login(process.env.BOT_TOKEN);

module.exports = client
4 replies
DIAdiscord.js - Imagine an app
Created by V2 on 9/2/2023 in #djs-voice
is there a way to send voice to specific members in channel simultaneously?
are you sure you got what I mean? I'm asking about splitting the output sound coming out of the bot toward members in the voice channel at the same time
4 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/27/2023 in #djs-questions
how do i use ``Role.icon`` hash? to get the icon?
thx ❤️
4 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/21/2023 in #djs-questions
guild members data not refreshing on .fetch()
my problem was with the intents. thank you ❤️
13 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/21/2023 in #djs-questions
guild members data not refreshing on .fetch()
but no data has changed either way
13 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
Cannot send an empty messag - embed
thx ❤️
8 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
Cannot send an empty messag - embed
oh
8 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
Cannot send an empty messag - embed
msg.channel.send({embeds: embed});
msg.channel.send({embeds: embed});
8 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
Cannot send an empty messag - embed
:\Users\Ms6RB\Desktop\projects\Blocks-Achievements\node_modules\discord.js\src\structures\MessagePayload.js:203
embeds: this.options.embeds?.map(embed => new MessageEmbed(embed).toJSON()),
^

TypeError: this.options.embeds?.map is not a function
:\Users\Ms6RB\Desktop\projects\Blocks-Achievements\node_modules\discord.js\src\structures\MessagePayload.js:203
embeds: this.options.embeds?.map(embed => new MessageEmbed(embed).toJSON()),
^

TypeError: this.options.embeds?.map is not a function
8 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
V12 msg.content = empty
okey, thanks ❤️
10 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
V12 msg.content = empty
I just want to make simple things using this exact version and I know it's not supported. but can I overcome this problem?
10 replies