djs-questions

9202 threads · Page 142 of 185

avatar 13 messages
civic nova Hello, I'm using djs@13.8.0. I want to create a /avatar command that also displays the user's banner. I have the basic c...
Issue with UserFlags 76 messages
steep umbra I am trying to display the flags that a user has, but for some reason, using `UserFlags#toArray()` seems to be showing t...
creating buttons 1 messages
vague elbow I'm reading the doc to understand how to create buttons so I can get to where I want to go, but I have this error here. ...
How to specify the ID of a forum channel? 4 messages
amber abyss I have an app that sends messages to a database if they are in the pre-approved channel. I'm using the code below. This ...
Discord.js V14, try, catch not working properly 195 messages
gilded solar hi, here's my code: ``` const Discord = require('discord.js'); const { Client, Intents } = require('discord.js'); const ...
How to use UserSelectMenuBuilder? 4 messages
tender flame Greetings, I found the UserSelectMenuBuilder component and don't understand how to use it. Can someone tell me?
Not respecting interaction permissions when using REST 11 messages
stiff wedge I have a script that deploys all my interactions globally instead of doing it through the client instance. Now this work...
"websocket" transport instantly closes 4 messages
left mulch Hello all! Trying to create a `RPCClient` with `transport` set to "websocket" seems to instantly close the connection. T...
1003448629866020986
Discord bots in array 34 messages
nocturne needle I'm trying to put 3 bots in array and use foreach for functions like read message etc
Shards restarting over and over with no error messages 6 messages
ashen mirage (See logs below.) Notice that there are no errors in the log; shards just restart over and over without any reason. Thou...
Can't get started with @discordjs/core 22 messages
fathom hawk Decided to mess around with `/core` today to see if it might be useful for a small lightweight project I'm planning. Fo...
998292157150535700
Purge command not working 4 messages
late scaffold I made a purge command and it was working for a while but it started not working today and I have no clue why.
[Resolved] Differentiate between media, website/article and rich embed 23 messages
lyric pike When receiving a `messageCreate` or `messageUpdate` event that contains an embed, how can I differentiate between media ...
Adding an entire role to a private thread 16 messages
pliant swift Hello - I am making a private thread, and I know how to add a particular user to it - is there anyway to add an entire r...
Can not read undefined 3 messages
ornate cargo Help pls...
Application Command Permission Update Event 9 messages
gusty thistle I am trying to get the type of permission in the data of the event. Example: `data.permissions.type` This is returning a...
Deleting all channels in a category 2 messages
pliant swift The following code gives the error 'channel.children.forEach is not a function. I have verified that channel.children is...
How do I make newly created channels automatically show up for everyone with onboarding enabled? 15 messages
trail swan My bot makes new channels to meet voice channel demand, how do I make the new channels appear for everyone in the server...
Fetching and Deleting all threads within a channel 6 messages
pliant swift Hello. I have the ID of a tech channel, and I want to delete all threads (active or archived) that are children of that ...
please can someone tell me why my code doesn't work: 109 messages
mellow snow `module.exports = { name: 'guildMemberAdd', async execute(member) { console.log(`${member} has joined th...
Error : Cannot find module "@discordjs/builders" 25 messages
heavy finch Hi there, I'm trying to put my discord bot on pebblehost but when I start it, the console tells me "error : cannot find ...
Retrieving an already running Client 1 messages
obsidian scaffold I'm generating AWS SQS messages based on Discord interaction events and using an AWS Lambda function to respond to them ...
Error: Cannot find module '@discord.js' 34 messages
mellow snow I have this error, i have installed rest, as the error has '@discord.js' and nothing else in my code has an @ before the...
Deploy Commands 33 messages
idle snow Hi, I'm a new user on discord.js, I would like to know if I can make it so that when the bot joins a server it creates c...
Loop data in select menu 3 messages
forest sable Hi guys, i need help for this problem, how do i add loop data array inside select menu builder?
incorrect presence display 17 messages
vital scarab I have 3 users on the server with the status "idle", but for some reason it shows that 1 with the status "online", and 2...
Random disconnection 50 messages
keen kiln My WS Connection was closed randomly. Debug logs are as follows: ``` [WS => Shard 0] [HeartbeatTimer] Didn't receive a ...
Checking roles of user in server from their dm message 72 messages
hollow parrot i want to check if a user dms and also has a role in the server ```js if ((message.channel.type == 1) && member.roles.c...
Slash commands are not registered 10 messages
vital scarab I cleared commands with [], the commands cleared successfully. I re-register commands, commands that were previously reg...
How to send a hyperlink 27 messages
elfin solstice like this
Total member count 2 messages
thorn yew How can I display in my bots status the total member count of all of the servers it is in. Essentially taking each serv...
Two seperate bots, where either one is intercepting the commands meant for the other bot. 6 messages
manic tundra Error is in the title, how can I make my bots ignore, and not intercept/accept the commands that are not meant for them....
[answered] Get interaction.options after button press with a collector (or without) 21 messages
covert finch i have a slash command that sends an embed with button, then the user clicks a button, how can i get the original slash ...
Embed Message API Error 9 messages
fathom wraith I am splitting off my embeded messages into another folder but I am having this API error
Suggestions for DB integration 34 messages
drowsy trout I'm new to discord.js, and have very limited experience with DB integration, I'll be using planetscale hobby tier databa...
Button Interaction Handler 71 messages
winged cargo Okay, so I have a command handler where each command gets it's own file. Now I want to create an event handler where eac...
getting a error with a ticket code 9 messages
smoky quail ```js const {SlashCommandBuilder, ButtonBuilder } = require(`@discordjs/builders`); const { EmbedBuilder, ActionRowBuild...
Memory heap error 23 messages
upper otter Not quite sure whats going on here. Was wondering if I could get any help here. The problem is occuring when the user ex...
/stop Music 1 messages
grizzled delta Good morning, I have a problem with the STOP command not working for my bot in JS. I tried several things but still noth...
Button interaction replies are not working. 5 messages
tacit oxide It returns nothing
"Could not extract stream for this track" err 1 messages
wide ivy Yesterday I tested some things from my bot, and today it just isn't working anymore the music part of it. Today I tried ...
can a discord bot create an invite link for a server that it is in? 4 messages
thorn yew can a discord bot create an invite link for a server that it is in?
Have bot not go offline after error 3 messages
devout owl Is there a way for me to have my bot log an error instead of go offline after each one?
Is there a way to change "Use Soundboard" via discord.js at this moment in time? 5 messages
empty oxide I.e. to add / remove "View Channel" It's ViewChannel: true/false,
autocomplete length 11 messages
hard idol Hello to all of you, hope your well. There is a way to have more then 25 choices in autocomplete ?
How to use FLAGS 23 messages
strong skiff How to use flags?
TS interactions.options.getChannel() issue 4 messages
magic finch Hello, I recently switched from JS to TS on this bot that I'm working on and now I suddenly get this error that .getChan...
SlashCommand Global to Guild 2 messages
astral latch How can I convert a global command to a guild command? I need to add some choices to a string option for a specific guil...
Command localizations in guilds 3 messages
quasi latch When I create a slash command with description localization, I can fetch the command and it will show the localizations....
[RESOLVED] Button with embed 15 messages
static wyvern ```const myEmbed = new EmbedBuilder() .setTitle('**MyServerName**') .setDescription('Click on "Verification" button to t...