djs-questions

13317 threads · Page 145 of 267

Invalid `Grant-Type` `Invalid "code" in request 21 messages
dusk fern Trying to get Oauth to work, and I'm constantly met with this error... Heres my code: ```js try { const code = ...
reaction-role 11 messages
vague elbow Well I'm breaking my head more than hours to make this work but it's not coming out the way I want. As you can see, I w...
Hello, anyone can assist me with this issue 23 messages
drowsy cargo TypeError: Cannot read properties of undefined (reading 'id') at get cache [as cache] (/home/runner/DoorsHelperBot/n...
Discord Oauth invalid_response_type 3 messages
dusk fern Following along with the guide from here: https://discordjs.guide/oauth2/#getting-an-oauth2-url I have changed the `res...
@discordjs package
How do I make the code? 5 messages
mellow kite ``` const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); ...
Sending messages from a forum channel to database, but unable to grab the tags 30 messages
amber abyss Everything is going through to my database from Discord, but I cant figure out how to grab the tags and the tag IDs. I'v...
Using d.js package for other projects that doesn't involve a bot. 3 messages
feral peak I been wondering if it's possible to use d.js package to do webhook things for other projects like Express.JS site or do...
Bot doesnt send anything. 28 messages
long hedge This is a bot that send a message when the server is empty (no one is online) ```js const Discord = require('discord.j...
CombinedError: Received one or more errors 26 messages
A way to get number of Guilds without the GUILDS Intent? 23 messages
native ore Hey, It seems my question was lost in the <#874431116533178459>, but maybe someone will notice it here. So, the TL;DR ...
send channel not working 6 messages
hallow briar ```js client.on("message", async message => { const spooferEmbed = new EmbedBuilder() .setColor('#147d...
Is it a bad practice to use ApplicationCommandManager#set everytime the bot restarts? 23 messages
placid tiger Self explanatory question. I know that it's considered to be "bad" when using the <@461373451244929025>rd/rest package b...
Auto Mod Create Event not working 7 messages
gusty thistle here is the event code. the output is nothing ```js const { EmbedBuilder, Events } = require('discord.js'); require('dot...
Payment Leads to Channel Access Bot 9 messages
quartz mirage Hey guys anyone can help me, I’m planning on creating a discord bot, where it’s main features is creating or getting a p...
Is fetching fine? 9 messages
hardy island I want to do the minimal amount of discord API requests possible. If I receive an interaction which may be in a correct ...
TypeError: Cannot read properties of undefined (reading 'id') 4 messages
formal bolt TypeError: Cannot read properties of undefined (reading 'id') Hi, after updating discord to version 13.15.0, I got an er...
Ignore channels from a category using filter 2 messages
hollow lily ```js let options = await interaction.guild.channels.cache.filter(ch => ch.type == 0).map((channel) => ({ ...
JSDoc? 14 messages
pine pewter Just realized that there is a lot of JSDoc missing. Basically the whole `typings/index.d.ts` file. Will this eventually ...
Button Interaction Member Roles is Array of Strings Not Role manager 4 messages
long flame Running into some issues with interaction.member.roles coming back as either string[] or GuildMemberRoleManager. How can...
bottons-pages 9 messages
vague elbow where I can find a guide on creating buttons with a page. I didn't see the doc addressing this
How to I turn Permission numbers into a string / array? 6 messages
gusty thistle ```js const directories = [ ...new Set(interaction.client.commands.map((cmd) => cmd.folder)), ]; ...
Button in bot activity 3 messages
gloomy flame Hello there i just saw this button in bot status!!How can i do that?
DiscordAPIError[50035]: Invalid Form Body 4 messages
fickle knoll ```js if(i.customId.split(`_`)[1] === `Skills`){ selected = i let newActionRow = i.message.components.m...
`attachment` under the `Attachment` class is now private 3 messages
soft raven https://github.com/discordjs/discord.js/commit/da23cd5d69de4856d075f00738f75c68c555ae5b Why was this change made? Some ...
Error while trying to turn the bot online. 7 messages
avatar 13 messages
civic nova Hello, I'm using [email protected]. 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 2 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...
RPC
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...
@discordjs package
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: 110 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 ...
Error: Cannot find module '@discord.js' 35 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...