V2
V2
DIAdiscord.js - Imagine an app
Created by V2 on 10/22/2023 in #djs-questions
return client class as promise
is there a way to return the client class as a promise resolves only when the ready event gets emitted? like this:
const bot = await require('./src/utils/bot.util');
const bot = await require('./src/utils/bot.util');
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?
as in the title, I'm searching for any way to do that. I want to play different sounds for different members in the same channel and at the same time but I couldn't figure out a way. also, I tried making the bot able to join a private call with each member but it's impossible.
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?
how do I use Role.icon hash? to get the icon? like URL for image etc.
4 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/21/2023 in #djs-questions
guild members data not refreshing on .fetch()
async function fetchMember(memberID) {
const guild = await client.guilds.fetch(guildID);
const guildFetched = await guild.fetch();
const member = await guildFetched.members.fetch(memberID);
return member;
}
async function fetchMember(memberID) {
const guild = await client.guilds.fetch(guildID);
const guildFetched = await guild.fetch();
const member = await guildFetched.members.fetch(memberID);
return member;
}
the data of member never changing
13 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
Cannot send an empty messag - embed
const embed = new MessageEmbed()
.setColor('#000033')
.setTitle('Achievements')
.setDescription('Here is a list of all the achievements you have earned.');

let fields = [];
for (const achievement of achievements) {
const achieved = data[achievement.id] > 0;
const name = achievement.name;
fields.push({
name,
value: achieved ? 'Achieved' : 'Not achieved'
})
}

embed.addFields(fields);
embed.setTimestamp()
embed.setFooter('Generated by Bard - Awelaw');

msg.channel.send({embed});
const embed = new MessageEmbed()
.setColor('#000033')
.setTitle('Achievements')
.setDescription('Here is a list of all the achievements you have earned.');

let fields = [];
for (const achievement of achievements) {
const achieved = data[achievement.id] > 0;
const name = achievement.name;
fields.push({
name,
value: achieved ? 'Achieved' : 'Not achieved'
})
}

embed.addFields(fields);
embed.setTimestamp()
embed.setFooter('Generated by Bard - Awelaw');

msg.channel.send({embed});
8 replies
DIAdiscord.js - Imagine an app
Created by V2 on 6/20/2023 in #djs-questions
V12 msg.content = empty
as you see in title msg.content return empty string
10 replies