V3RM1N
V3RM1N
DIAdiscord.js - Imagine an app
Created by V3RM1N on 12/7/2023 in #djs-questions
Fetching / Getting the id of a subcommand in a subcommandgroup
So im trying to make a fully dynamic help embed which shows each command with their description. I need the id to make the commands clickable (like this: </commandname:831874384724> ) all the "normal" commands are shown as they should. But 2 commands, those with subcommandgroups are not clickable. So back to the question does anyone know how to fetch the command ids i read through the docs but didnt find anything regarding ids in subcommands. Node v20.9.0 Discord.js v14.11.0
10 replies
DIAdiscord.js - Imagine an app
Created by V3RM1N on 2/22/2023 in #djs-questions
How to fetch all online users in a guild, including idle and dnd
See title Code: guild.members.cache.filter(member => member.presence?.status === 'online' && !member.user.bot).size; DiscordJs Ver: 14.7.1 Rest Ver: 10 Node Ver: 18.14.1
15 replies