djs-questions

9202 threads · Page 50 of 185

React to message with emoji 8 messages
queen glen I know it's probably something really simple but my bot sends a message not in response to an interaction. It should the...
Is it possible to mute someone using a var 17 messages
warm osprey what i mean by that is this ```await timeoutTarget.timeout(muteTime);``` muteTime is a var being set with a specific ti...
💚💛🧡I need Help i am a Bigginer 30 messages
crimson niche i use this code: ```const { Client, Events, GatewayIntentBits } = require('discord.js'); const client = new Client({ ...
1150878580193116250
Defer without message in modal 3 messages
sleek heath how to make the inscription “bot is thinking” in a modal? If I use `deferReply`, the modal window is closed and a “bot i...
1150878580193116250
"Invalid Form Body" when using sendPremiumRequired() 6 messages
pallid lantern Hi all, I'm having a weird issue here. I have monetization and whatnot fully set up on my bot, including a working store...
1150878580193116250
permissionOverwrites#set method 34 messages
winter knot Hi, I'm making a system where I want to overwrite the entire permissionOverwites in a channel. First I'm only getting ...
client.player.getQueue is not a function 8 messages
glad lark I dont understand how it is not a function but oh well, so the problem is that only the play command works and others do...
1150878580193116250 998292157150535700
Issues getting message after using it once 128 messages
fierce violet In the following screenshots you can see a summary of what i have been abl to find out until now. - Bot starts, waits 30...
1150878580193116250 998292157150535700
Weird error in connection with mongodb 3 messages
old haven I'm getting this error out of nowhere Error: https://pastebin.com/XEprvax6 Code: https://pastebin.com/F8bPhQuy I'm free ...
❤🧡💛PLEASE HELP 24 messages
crimson niche i install NodeJS and i updatee JAVA but i get this errors
1150878580193116250
join message dont works 10 messages
eternal bay it dont even shows log
Remote All Reactiosn 5 messages
gloomy flame How can i detect remove all reactions
"No description" error when sending message 7 messages
glad canopy Hi, as far as I know, discord.js throwing "DiscordAPIError[undefined]: No Description" indicates that an error unknown t...
1150878498534199426
[NoExtractors] Warning: Skipping extractors execution since zero extractors were registered 5 messages
glad lark Hello I am writing a Discord music bot and I am stuck on this error and I don't know what to do. Please help🥲 Most of t...
998292157150535700
Can I set the slash only for those who have a certain role? 8 messages
vague forum Is there any way for this to work and the slash only appears for those who have the defined position?
unknown interaction 36 messages
flint sinew Hi guys, I get the unknown interaction on regular base:'(. See the sourcebin for my error and code. https://srcb.in/N5v...
"Cannot read properties of undefined (reading 'guilds') 6 messages
valid raptor Hi there. I'm pretty new to discord.js and JavaScript (I'm working on Codecademy's course as I do this) and I'm trying t...
Issue with Modal -- "Something went wrong. Try again." 14 messages
crude rapids I've been trying to get the response from a modal, but nothing seems to come down the websocket at all and it just state...
1150878890307358882
Trying to get a list of members of a role 35 messages
barren pebble <:peepoThink:703556319734530050> I'm getting the message of a user (me) and then im trying this and the `roleInfo` is un...
delete channels 36 messages
hearty rain How do i delete channels fast? Becausen when you normally make a loop and delete channels its kinda slow
1150878580193116250
"The application is not responding" 17 messages
viral nest Can someone tell me why my bot executes the command without any problem, but once this is done it responds with "The app...
How do I convert this code to v14 ? 6 messages
cursive notch ```js const discord = require('discord.js') const client = new discord.Client({ intents: [discord.Intents.FLAGS.GUIL...
Building Embed & 3 Buttons in v14 (use ActionRowBuilder and EmbedBuilder?) 8 messages
safe sorrel I have a function that 'compiles' and sends an embed and components (which are three buttons) to a text channel: `async...
1150878580193116250
addFields choose position 3 messages
ornate notch Can i choose a index when adding a new field to my embed?
DiscordAPIError[undefined]: No Description 22 messages
fierce violet Randomly started happening after i executed a menu command (right-click, apps) https://blackwolfwoof.com/s/wTpoegtR9oFwQ...
1150878580193116250 998292157150535700
Issues installing @discordjs/opus 9 messages
olive talon Attempting to install discordjs/opus, getting multiple errors. I've successfully installed the build tools, VS 2017 buil...
998292157150535700
Interaction 14 messages
rose pendant How am I able to fetch the display name of a user in the interaction guild? I tried interaction.member.guild.name but it...
ClientUser banner is undefined when force fetching on ready 111 messages
thorny gate I decided to open a post because I asked in d.js help and go no reply and i then bumped the message 2+hrs later and sti...
Validate Slash command text 4 messages
gusty star Is there a way to go about validating slash command text? For instance I have a slash command that takes a name and a u...
@discordjs/rest & Nextjs v14 error 3 messages
steady violet I'm trying to create a dashboard with Next.js to manage a Discord server and organize some stuff like events and tournam...
1150878580193116250 998292157150535700
Create role with custom icon 5 messages
bitter cipher Is it possible to create a role with a icon without the custom icon being on the server, since you can upload a file dir...
1150878580193116250
New Error 4 messages
gloomy flame TypeError: terminated I got this error only in one bot
Changing rest api of WebhookClient 34 messages
fierce violet By the looks of it this seems to be possible but i am having difficulties understanding the structure of this
998292157150535700
Get join method 2 messages
versed jay is there any way to get join method info from the members tab? I could not find information about this in the disocrd ap...
1150878580193116250
Building custom messages from the discord-giveaway package 3 messages
mighty pelican I'm building an discord giveaway system using https://discord-giveaways.js.org/global.html#GiveawayStartOptions. Now can...
Broken Code 44 messages
help 12 messages
coarse ore const fetch = require('node-fetch'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\georg\Des...
How to get a username from id if the user isn't in the server (for unban command)? 4 messages
nimble moth title
Create channel 6 messages
sullen frigate Hello i don't why i have this error : Invalid Form Body name[BASE_TYPE_REQUIRED]: This field is required at handl...
Connection Timed Out 1 messages
remote abyss Just uploaded my bot to a vps after rewriting it entirely in ts. Not a single issue locally but now on the vps I get thi...
My discord bot doesnt respond when i write a command in DM but in server or guild it reply 3 messages
opal bough I just get into discord bot stuff and trying to improve my soft skill in coding so I give a shot to develop a discord bo...
1150878580193116250 998292157150535700
Roles not adding correctly 2 messages
atomic elbow ```ts // Member is a GuildMember, passed from the interaction's interaction.member. i.e.: const member = interaction...
986538542350086175
Roles not adding correctly 0 messages
atomic elbow ```ts // Member is a GuildMember, passed from the interaction's interaction.member. i.e.: const member = interaction...
986538542350086175
why this collector isnt working?its not responding to the answers 7 messages
wicked cypress ```js module.exports = { data: new SlashCommandBuilder() .setName("quotes-quiz") .setDescription("An...
why cant i see my slash command when i test it? its not working 16 messages
coarse ore ```js const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [ Intents.FLA...
Do I need to manually check if each message in an Array is bulkDeletable? 3 messages
upper prairie I am currently writing a purge command for my bot, I mean, app, and I came across the `Message` property `bulkDeletable`...
TypeError: Cannot read properties of undefined (reading 'GUILD_VOICE_STATES') 7 messages
coarse ore why is this happening const { Client, GatewayIntentBits } = require('discord.js') const client = new Client({ inten...
Wrong user count 13 messages
supple pumice ```js const { EmbedBuilder, ApplicationCommandType, time, version } = require('discord.js'); const botJSON = require('.....
Is my Node.js not working? 4 messages
spring horizon I need a second idea of what might be going on inside my project
1150878580193116250
Stuck in joinVoiceChannel connection stuck in signalling - any advice? 6 messages
regal badge I do have the voice state intent set: index.js ``` require('dotenv/config'); const fs = require('node:fs'); const path ...