djs-questions

13317 threads · Page 166 of 267

Deep Link 2 messages
The Application Did Not Respond: Help appreciated! 7 messages
wraith veldt Hello, I followed the guide on https://discordjs.guide/ (really nice) but I'm getting an error with the bot when using...
Function newMemberThreads won't run in server 14 messages
manic flame I have created a function called newMemberThreads and run it every 2 minutes from ready.ts to create a thread for new me...
InteractionCollectorError ignores try/catch block 2 messages
molten moth I'm trying to cover some edge cases of my project, one of those being that the message is deleted by a moderator before ...
Getting unknown interaction and interaction has already been acknowledged 2 messages
fallen gulch ```const {SlashCommandBuilder,EmbedBuilder,PermissionFlagsBits,} = require("discord.js"); module.exports = { da...
Add emoji by Buffer fail ? 12 messages
waxen galleon Hello I think there is a issue with emojis creations on guilds Code: https://i.imgur.com/9Euwv89.png Console output: ht...
Why don't events like this appear using the Events.GuildBoost module 9 messages
mental goblet When I try to generate server booster logs, I try to use Events.GuildMemberBoost, But it is not available in the autocom...
Need help defining a const for my bot. It says it is "not defined". 4 messages
winged sequoia ```client.on('ready', () => { client.guilds.cache.forEach(guild => { if (guild.name === "Server Name") { ...
are we still required to use slash commands 5 messages
minor cloak i want to make many commands but slash commands has a limit Can i keep making prefix commands? Thanks in advance
my bot leave a "unknow" server 16 messages
livid jolt Heyy I come to expose you one of my problem... I finished to migrate my bot to the commands / there can and there is sti...
is there an enum for client events? 4 messages
patent panther i looked through the discord-api-types and ive found an Enum named GatewayDispatchEvents which is similar to what im loo...
Snowflake parse in api endpoint? 8 messages
serene walrus I have an API endpoint which expects a guild id url param to be passed in, but this endpoint is also used for DMs where ...
How to get a reaction on a message 2 messages
crisp valley I am unable to get a reaction on the bot message because of an error that says "TypeError: interaction.userpoll.then is ...
Get Rich Presence for a User 7 messages
mossy gale I couldn't *quite* find what I was looking for on google so I figured I'd ask here. I want to get the rich presence of a...
find groups from SlashCommandBuilder instance 2 messages
young solstice hi, can i find groups and subcommands from the SlasHCommandBuilder instance? like doing builder.groups.get(groupName) or...
How do i give a message an id 7 messages
icy hearth lets say i have an embed with the title hello like ```js const ok = new EmbedBuilder() .setTitle('Hello') .s...
[Solved] Shard broadcastEval "Script to evaluate must be a function" 9 messages
waxen galleon Hello, I'm actually trying to make a shard list but thie broadcastEval don't like what I did in 2020 so can someone guid...
self.onError(new RequestAbortedError()) 4 messages
orchid hull self.onError(new RequestAbortedError()) ^ RequestAbortedError [AbortError]: Request aborted at abo...
Interaction class 6 messages
fierce fjord I created a handler that loads the commands and executes the run function when they are called, nothing unusual. The pro...
Please help me 12 messages
Problem running roles.forEach() while a role is deleted 2 messages
Awaiting user to finish onboarding before doing something 6 messages
cold sand Basically title. Is there something to do like that?
HTTPError [AbortError]: The user aborted a request. 5 messages
orchid hull throw new HTTPError(error.message, error.constructor.name, error.status, request); ^ HTTPError [AbortErro...
How to get bot name inside slash command...and other questions 23 messages
exotic summit ```js const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() ....
how to get subcommand and subcommand group from an interaction 2 messages
young solstice hello, getSubcommand and getSubcommandGroup used to be here, have they changed?
Trying to Print User input into channel 36 messages
lunar canopy const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() ...
Find a player in a client by id 3 messages
random vine I want to find a player in a client by id and give a role to him. the pic is error and below is the code How can I get...
Verify member on User option 6 messages
vagrant canyon Does the verify member have any use ?
Remove String Option 13 messages
random vine I want to remove UserOption When StringOption's choice is all I don't know how to remove below part ```javascript .addU...
Can I get only id from value? 16 messages
random vine Here's my code ```javascript module.exports = { developer: true, data: new SlashCommandBuilder() .s...
Get total users 2 messages
sudden moss Hi, good night! I wanted to know if need the presence intent to count the total number of members (Getting it from the c...
my bot does nothing 7 messages
keen berry client.on('voiceStateUpdate', async (oldState, newState) => { if (oldState.channelID !== 753116041940435074 && newStat...
Is there an event to detect create a server invite link? 22 messages
random vine I want to know when user create a link
Fetch user that isn't in current server 12 messages
oblique shell How do I fetch a user that's not in the same server as my bot? This is for a command that will display an embed with the...
How to check if user has a role? 10 messages
random vine I'm trying to like below ```js module.exports = { name: "guildMemberRemove", once: false, execute(member, ...
Error: ClientIntentMissing 25 messages
pale yoke Hi, I've been trying all day to solve this error that is due to the attempts, but I couldn't. I'm still trying to solve ...
Onboarding Event? 3 messages
kindred relic Wondering if there is a new event we can listen to for when a new member completes the new onboarding. Also wondering a...
Get all members with a role in a large guild? 3 messages
hexed solar How can I get all members with a role in a larger guild. I know you have to use guild.members.fetch however that times ...
Looking for snippet: sort channels by name 8 messages
leaden tulip I somehow fail to write something performant to sort the channels of a category alphabetically by name. Has someone some...
ESM version docs for D.js 10 messages
quaint mist is there a ESM version of the docs/examples available some where? all the examples seems to be in common js
shard.broadcastEval gives me a reference error even tho all vars are defined 80 messages
graceful lodge So I just sharded my bot and was playing around with `client.broadcastEval` and it gives me this. got a channelCreate.js...
Stop the interaction to the same user 8 messages
inner meadow Hey i create a command where people can interact with button but when they put two times the commands and interact with ...
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported 2 messages
meager zenith Hi everyone, I'm trying to read all commands from my command's folder but I can't seem to get it to work. ```js const...
Error [TokenInvalid]: An invalid token was provided. 20 messages
random vine ```js const {TOKEN} = require("./config.json") client.login(TOKEN) ``` I JUST DONT GET IT why this error has been occu...
pm2: not found 8 messages
tribal root Hey does anyone know how i can fix this issue? exec error: Error: Command failed: pm2 restart index.js /bin/sh: 1: pm2:...
d.js "category" 5 messages
pearl lynx prob weird question, but d.js is back end, right?
Accessing SubCommand Options 2 messages
proven lintel I am trying to get some options from a SubCommand I created, following the this guide: https://discordjs.guide/slash-com...
Help with embeds 11 messages
graceful oasis Hey guys! How can that background behind the values that is shown on the picture?
How to learn discord.js 6 messages
pulsar sluice Hi, i want learn discord js, what is the best option? Read docs YouTube vidéo ?
Problem with (reloading?) commands. 3 messages
fierce iris So i'm having this issue, but is probably due to me not being able to understand how commands work, or maybe is somethin...