djs-questions

9202 threads · Page 172 of 185

[14.7.1] How to delete message with ID, without fetching? 6 messages
tropic gull On discord API, I can delete message by `DELETE /channels/:channel_id/messages/:message_id`, without fetching message da...
how to reset the last selected option on the selectMenu? 3 messages
naive otter I use `i.update({ embeds: [embed], components: [selectMenu] })`, but this don't work
How do I get all the roles a member has? 3 messages
exotic summit I've been looking at google to figure out how to get all of the roles a member has since member doesn't have a roles att...
How do i mention a role? 24 messages
exotic summit ```js module.exports = { data: new SlashCommandBuilder() .setName('ping') .setDescription('Replies with Pong!'...
Collection Undefined? 39 messages
exotic summit ```js const fs = require("node:fs"); const path = require("node:path"); const { Client, Events, GatewayIntentBits } = re...
Checking vanity URL not working 36 messages
mild osprey ``` var vanity = guild.fetchVanityData().then(res => console.log(`Vanity URL: https://discord.gg/${res.code} with ${res....
Discord Linked Roles 6 messages
worthy gyro How can i use discord linked roles with discord js, and how it works?
Do not have permissions to use my own bot the second time 35 messages
graceful lodge just created my own slash + prefix cmd handler but there is a problem with the slash part after i use any one slash cmd ...
how do i get this from message 24 messages
narrow crypt users: Collection(1) [Map] { '813066969011322900' => [User] }
Accessing bot statistics or information through an external site 15 messages
lime chasm Heya, I'm building a web app for my bot, is there any way to fetch some statistics about it, like how many servers it is...
DisallowedIntents 5 messages
stuck tundra Hello everyone, just so you know about about myself, i´m a junior in computer science :). I´m trying to build my own dis...
Get all members that have a specific role 10 messages
pastel monolith Hi, I'm trying to add a list of users with a specific role to a text file, but everything I do doesn't seem to be workin...
Is it only possible to display the ID of an added tag in the console? 1 messages
deft smelt I couldn't find a way to copy the ID from a tag on Discord. The only way I found is to display it in the console. Is t...
Listing new permissions with channelCreate event - permissionOverwrites 10 messages
surreal remnant Hello there! I have a log on Discord.JS v12 that is fired on the `channelCreate` event, where it logs some information f...
Prefix command handler is acting strange 28 messages
lucid apex Hello there! I am developing a discordJS v/14.7.1 prefix bot. I have some problems although. The command handler (att...
is it possible to allow users to execute slash commands in bot's DMs? 3 messages
abstract jungle if so, how? thanks!
Are server subscriptions supported yet? 3 messages
raven niche just wondering, i dont see them on the docs, but is there a dev version that supports them?
Persistent Buttons and Dropdowns 12 messages
granite summit I'm transitioning from using discord.py to discord.js and one thing I'm having trouble figuring out how to get setup is ...
How do you create a channel in Discord.js? 9 messages
queen crescent Hello, I had a quick question. I'm new to Discord.js - Was trying to create a channel, found this on the docs and I stil...
help regarding guild member permissions and channel permission overwrites 3 messages
gloomy fjord Hi, I'm trying to make an array of all members in a server who have a certain permission, in this case "KICK" : ```await...
Pin a message in a Public Thread Forum 11 messages
gleaming lantern ```TS command.reply({ embeds: [simpleEmbed(msg("cmd-forum-exec-resolve-success", [link]), "normal")] }).then(msg => { ...
Set image to spoiler in embeds 11 messages
chilly wing I was wondering if there is any possible way to put an image to spoiler in the `.setImage()` parameter of embeds ?
Light Weight Version of DiscordJS 6 messages
rare wasp Hey, I’m building out a website + Discord bot and for my use case, I want to use some elements of Discord JS such as cha...
998292157150535700
Button UserID push through 28 messages
gleaming schooner So I have a Event where the Bot sends a Welcome-Message with a Button to Welcome the User, similar to the Discord in-bui...
add reactions to message 19 messages
narrow crypt How do i add reactions? I enabled privileged and guilds, guildmessages, messagecontent and they work but not message.rea...
Question about embeds 5 messages
ember mantle Guys I got a question, Let's say we made 2 embeds and 1 button components. Is it possible to add button components on f...
AutoComplete Function doesnt get Called 28 messages
rare lichen Hello, My Bot doesnt seem to call the autocomplete Function
how i can handle discord ratelimits? 54 messages
faint sinew for example my bot shows the current song and when people skip too fast the message dont get updated because ratelimit. ...
What is the easiest way to replace a mention or by the user channel name in string ? 11 messages
shadow epoch What is the easiest way to replace a mention @ or # by the user / channel name in string ?
slash commands and commands in general 40 messages
void tendon i need help with my code
help 8 messages
hidden gust const Discord = require("discord.js") const intents = new Discord.IntentsBitField(3276799) const bot = new Discord.Clien...
Problem getting channel 66 messages
graceful lodge so i have logChannel defined like this ```js globalThis.logChannel = client.channels.cache.get("channel id"); ``` and i...
Starting values with collections 3 messages
toxic latch HI, How can I give a new collection starting values. For example: ``` new Collection([ { ... } ]) ```
998292157150535700
ButtonBuilder, but ButtonStyle not exported from DJS? 6 messages
rugged ginkgo So got an issue with my installation of DJS, it seems to think (and a search of the code seems to agree...) that `Button...
interaction 28 messages
mental mural help with this command
Bot DMs not appearing on shards outside of shard 0 2 messages
olive shore A while back I had an issue with the bot not registering DMs unless it was on shard 0, and i was told that its because a...
How to get an emoji with id when the emoji is one built into discord 15 messages
marsh furnace How would I go about grabbing an emoji using id when the emoji is built into discord? `<guild>.emojis.fetch(<id>)` and `...
The reply to this interaction has not been sent or deferred. 36 messages
modest ocean For some weird reason, i only get this error when spamming the comment... when doing it 1 by 1 it works perfectly fine
Need some assistance in converting slash commands to prefix commands 16 messages
drowsy cargo Hello, since i am new to coding apparently , i want to convert my slash commands to prefix commands but i need some assi...
Bot stops listening for events but stays online 45 messages
karmic sapphire I recently upgraded to 14.7.1 and I'm having an issue where after a seemingly random amount of time (usually between 0.5...
context menus not working 17 messages
torpid holly code: ```js const { ContextMenuCommandBuilder, ApplicationCommandType } = require("discord.js") module.exports = { ...
[Potential Bug] incorrect channelUpdate event after editing a channel 26 messages
exotic forge It seems like DiscordJS does not emit the correct `channelUpdate` event after a channel's parent has been edited using `...
Logging 15 messages
gritty hull How do I enable verbose logging in latest DJS?
What's the best, fastest and easiest way to make and register slash commands? 23 messages
void oasis The reason I'm asking this is because I've had a lot of trouble trying to register slash commands so many times that I j...
Passing MessageContextMenuInteraction data to other interactions? 3 messages
sick pendant Hi! I'm working on a context menu command, where you click on a message and it tries to translate the message content by...
Interaction data to another interaction 18 messages
craggy lodge Hi, I'm triyng to pass the first interaction data in "interaction" (right-clic) to the modal interaction. Now, inside ...
Check with a list of user ids in string format if they are present in server 57 messages
tepid wadi Hello! I'm currently on 14.7.1 and I'm running into a lot of trouble attempting to get this check completed. I am able t...
Got bunches of errors when import {Client} from 'discord.js' to react environment. 3 messages
zinc socket my package version: node.js version : v16.16.0 discord.js version : 14.7.1 react version : 18.2.0 I c...
DJS BROKE HERE TOO 15 messages
winter fern My bot suddenly started responding multiple times from yesterday. I tried changing host. And doing all debug. After that...
TypeError Cannot read properties of undefined (reading 'name') 3 messages
fair pumice Can anyone help me sovle this problem ?