Kumar
Kumar
DIAdiscord.js - Imagine an app
Created by Kumar on 9/28/2023 in #djs-questions
@everyone ping Bug ?
interaction.channel.send({
content: "@everyone " /* + member.toString() */,
allowedMentions: {
roles: [guild.roles.everyone.id],
},
});
interaction.channel.send({
content: "@everyone " /* + member.toString() */,
allowedMentions: {
roles: [guild.roles.everyone.id],
},
});
doesnt ping but this does:
interaction.channel.send({
content: "@everyone " /* + member.toString() */,
});
interaction.channel.send({
content: "@everyone " /* + member.toString() */,
});
12 replies
DIAdiscord.js - Imagine an app
Created by Kumar on 9/24/2023 in #djs-questions
Interactive Button Data
I want to make my Button label interactive but somehow it doesnt change when the variable changes:
const el = {power:"on"};

const bt = new Button({get label(){
return el.power
},...}) //Button extends ButtonBuilder
el.power = "off";
await interaction.reply({components: toComponents( bt) })
const el = {power:"on"};

const bt = new Button({get label(){
return el.power
},...}) //Button extends ButtonBuilder
el.power = "off";
await interaction.reply({components: toComponents( bt) })
I am sure its because the props are not directly linked to Buttonbuilder.data but just set once when initating the class right? Is there some way to fix that?
3 replies
DIAdiscord.js - Imagine an app
Created by Kumar on 5/29/2023 in #djs-questions
Display all commands in guild a member has permissions on
I cant figure it out guild.commands.cache.filter((c) =>member.permissions )
22 replies
DIAdiscord.js - Imagine an app
Created by Kumar on 3/12/2023 in #djs-questions
Cant access #Guild.members from ForumChannel
#ForumChannel.guild.members.cache return undefined Trying to fetch await #ForumChannel.guild.fetch()
TypeError: Cannot read properties of undefined (reading 'ws')
at Guild.get shard [as shard] (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/structures/Guild.js:134:24)
at /Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/managers/GuildMemberManager.js:504:18
at new Promise (<anonymous>)
at GuildMemberManager._fetchMany (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/managers/GuildMemberManager.js:501:12)
at GuildMemberManager.fetch (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/managers/GuildMemberManager.js:208:31)
at /Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:24:79
at Generator.next (<anonymous>)
at fulfilled (/Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) uncaughtException
TypeError: Cannot read properties of undefined (reading 'ws')
at Guild.get shard [as shard] (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/structures/Guild.js:134:24)
at /Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/managers/GuildMemberManager.js:504:18
at new Promise (<anonymous>)
at GuildMemberManager._fetchMany (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/managers/GuildMemberManager.js:501:12)
at GuildMemberManager.fetch (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/managers/GuildMemberManager.js:208:31)
at /Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:24:79
at Generator.next (<anonymous>)
at fulfilled (/Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) uncaughtException
And: await #ForumChannel.guild.members.fetch()
ypeError: Cannot read properties of undefined (reading 'rest')
at Guild.fetch (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/structures/BaseGuild.js:104:36)
at /Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:22:38
at Generator.next (<anonymous>)
at fulfilled (/Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) uncaughtException
ypeError: Cannot read properties of undefined (reading 'rest')
at Guild.fetch (/Users/kevinkumar/Downloads/tmsbuddies/node_modules/discord.js/src/structures/BaseGuild.js:104:36)
at /Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:22:38
at Generator.next (<anonymous>)
at fulfilled (/Users/kevinkumar/Downloads/tmsbuddies/apps/discord/src/HelperBot/events/inputs.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) uncaughtException
7 replies
DIAdiscord.js - Imagine an app
Created by Kumar on 3/11/2023 in #djs-questions
No error stack trac
28 replies
DIAdiscord.js - Imagine an app
Created by Kumar on 1/4/2023 in #djs-questions
custom filter of Channels with their according Type
32 replies