djs-questions

13317 threads · Page 106 of 267

Some issue with the code that doesn't allow the creation of slash command error code 400 59 messages
shell sierra discord.js slash command ```js const { Client, GatewayIntentBits } = require('discord.js'); const client = new Client({...
`fetchStarterMessage()` doesnt give me the first message of the thread 5 messages
eternal shore I am trying to get the first message associated with the thread. But the message object returned from the `fetchStarterM...
channel.send('content'); error ponying to .send 12 messages
tender current TypeError: Cannot read properties of undefined (reading 'send') i am trying to send a message to a channel without a use...
ChannelNotCached Error when make thread 5 messages
fringe spade ## Version discord.js - 14.12.1 node js - 18.6.0 ## Question I got an error when I try to make a thread which connect wi...
Getting User Guild Avatar/Banner 13 messages
tidal yoke Hi I'd like to know how can i get the user's avatar and banner in the current guild Currently I get the user info from ...
GuildMember.setNickname weird issue 13 messages
timid cloud Im using a modal for my discords verify system, where they input text and that text then becomes their nickname. 90% of ...
Multiple Schema creation on message for level??? 2 messages
stoic flame So basically I have the leveling system and on the surface it seems to work, but there is just a few issues when I send ...
Getting "Unknown interaction" error even with interaction.deferReply() 17 messages
storm knoll Hey folks, I am getting a strange error with this code: ```ts class StandingsInteraction { public async interaction...
Unknown Interaction on awaitModalSubmit() 12 messages
crude folio Hi everyone, im kinda scratching my head here trying to figure out whats going on. https://pastebin.com/dRXw5Ffm Behavi...
member.dmChannel.awaitMessages() breaking when updating from v14.11 to v14.12 26 messages
queen summit I currently have the following code which works perfectly in discord.js v14.11 however when I upgraded to v14.12, I star...
Updating an embed following interaction with a button 5 messages
hexed escarp Hello, I have an embed with 2 buttons, a first which validates and a second which cancels. I would like for example that...
Creating a word counter with mongodb and discord.js 4 messages
halcyon pier I am trying to create a word counter which displays the users tag and how many times they have said a specific word whil...
Check if user that sent a message have permission 50 messages
buoyant bramble How can i check if the bot have a specific permission on the server? I was using `if (msg.member.permissions.has("USE_A...
Slash Command Builders 4 messages
fickle crow I am following the guide for slash command builders and trying to figure out what to do with the part that says get the ...
Leveling system not working 4 messages
stoic flame So the issue is that when trying to make aleveling system and send the data tyo mongoDB it seems to not even be calling...
Get the list of roles for a server and browse it. 10 messages
hexed escarp Still a little question about the roles, I would like to retrieve the complete list of all the roles to browse it and re...
error 13 messages
tender dew okay so when ever i start running my code using cmd my code is a discord bot it gives me this
Doesn't run with systemmd 2 messages
tranquil lava im trying to get my bot to auto start with my computer but when i run the startup script through systemmd i get this err...
Question 8 messages
Question about message edit limitations 4 messages
vale dune When editing a message (this message has been fetched), is there a limitation on how old a message can be?
JSON File Counter 46 messages
halcyon pier I am trying to make a simple word counter in discord.js I have managed to get the bot counting the specific word i want ...
Find what role was added/removed with guildMemberUpdate 6 messages
sudden grail Hi, I am trying to detect when a role is removed from a user. I currently have the following code: ```js client.on("guil...
.showModal is not a function 15 messages
paper iron I use modals a bit and every once in the while I get the error `TypeError: interaction.showModal is not a function` now ...
@discordjs package
Interfacing with call video 4 messages
edgy fossil Is this library capable of interfacing with the video streamed by other users during a call? I'm trying to create a bot...
unable to make changes 53 messages
stark coral i have made a automod command but i cant able to set punishment or logs
command.execute is not a function 153 messages
dark valley # Error ```js TypeError: command.execute is not a function at Object.execute (/workspace/official-realtrickz-communi...
Cannot read properties of undefined (reading 'Client') 22 messages
dim bane Hi, so i need to add intents to my basic bot. Now it cant read `Client` anymore when i do this, does anyone sees where i...
Discord RSS Bot. 6 messages
Is it possible to create the backend of a dashboard with discord JS? 45 messages
icy vapor Like the title says. Im wondering if its possible and yes, if it is recommended. Most of the avaibale tutorials on YT ar...
how to this type of advanced help menu 13 messages
bright stone https://srcb.in/aatGdT2Ff5 https://srcb.in/IrPCEw0UZu ```js const commands = interaction.client.commands.filter(x => x....
Problem: Preparing to connect to the gateway... 10 messages
visual locust Hello i have problem, im running my discord bot on a hosted server, it hasn't worked for the past few days. I need help ...
How do i make commands 2 messages
stiff dew ```js const {Client, Events, GatewayIntentBits} = require('discord.js'); const client = new Client({intents: [GatewayI...
Fetch more than 100 messages in a channel 36 messages
fallow trout Hey, I know that I shouldn't fetch more than 100 messages but it's a bot in one server so I wanted to know if there is a...
Embed with slash command 2 messages
woeful tiger I want that embed command will take embed info from embed.js file but not from index.js It is possible?
How can i kick all members who doesnt have any role? 94 messages
gusty roost DJS
I can't download discordjs opus 11 messages
severe rivet Hi there I can't download djsopus I try many things like delete node module and rebuild the project but gave it this err...
@discordjs package
Get around deferReply's lag 19 messages
calm barn i'm trying to get around the lag caused by awaiting message.deferReply constantly, i'd like to do message.deferReply wit...
@discordjs/rest 10 messages
winter musk Hi i just installed discordjs/rest for slash commands but there is a error message now someone know how to fix it
Giving a member permission to change permissions in a selected channel 4 messages
pale island What is supposed to happen: User gets permission to change permissions in a selected voice channel What happens: User d...
Edit a database when mute/warn is over 15 messages
median raft So, I did a command to mute (using timeout method, no problem, it works), same for warn (simple message). For each and e...
How to limit my fields (embed) 10 messages
silent sapphire Hello, i explain my problem (sry im french)
MessageCollector not working 7 messages
pseudo compass I am trying to get the content of the response so I can save it as a variable and move onto the next bit of information ...
What permissions does the bot need to have on the guild to detect the 'interactionCreate' event? 2 messages
radiant hearth I want to tag roles, use 'interactionCreate' event and send messages in channels but I'm confused
Modal imput question 5 messages
rotund birch In current version of discord js can you insert into modal some other components than TextInputBuilder? I cannot see t...
why the icon icon_url not working 14 messages
umbral dove it doesnt show the icon_url
Embed with discordjs/rest 6 messages
wise prairie Can you send embeds using discordjs/rest? I have only sent strings using rest.post but I was wondering if I could build ...
Missing permissions while trying to ban someone 32 messages
plush lichen ```js throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData); ...
why this is not working? 3 messages
prime lotus ```ex const Discord = require('discord.js'); const client = new Discord.Client({ intents: [ Discord.GatewayIntentB...
how to do the invisible status but online 3 messages
past elbow Like this
How to use "Events"? 7 messages
timid pecan Hi, I want to make audit log but i do not know to use "Events". I can not find correctly source. Could you give example ...
@discordjs package