djs-questions

13317 threads · Page 58 of 267

Get member from user select menu 4 messages
honest quarry I have searched and cannot find my answer. I want to get the member selected from the user select menu.
Server available is false most of the time. 3 messages
shadow furnace I get available == false about 4/5 times when doing this request. ```JavaScript function getServers(client) { retur...
node
What Discord.js version works on 16.9.1 3 messages
clear mortar Hi! I'm trying to make a Discord bot, which is going be hosted by a FiveM server. Since the latest FiveM Node.js version...
node
How to add emoji in modal? 8 messages
delicate tree How to add emoji in modal. Like we can be able to select emoji but in modal
How to access older posts in a forum channel? 5 messages
neat fractal Here is my current code: ```js async function countNewGallery(client) { const galleryForum = (await (await client.gu...
Making a /command 6 messages
dusty bluff Hi, how would I go about making a command where any .js file in the folder /commands gets registered, and how do I regis...
node
TypeError: Cannot read properties of undefined (reading 'members') 39 messages
torpid holly ```js const guild = container.client.guilds.cache.get(event.guild_id); const member = await guild.members.fetch(event.au...
is this bot code uptodate with discord.js 14 21 messages
violet sky i found a updated code for a bot that schedule lock and unlock for channel i was wondering if its uptodate cause the bot...
modal with select menu (answered - not possible) 25 messages
runic siren This modal has features such as a select menu and an on/off button, but there are only text inputs in discord.js. Will t...
dev release
i need help making a bot for a schedule locking and unlocking for a channel automatically daily 30 messages
violet sky hello im new in coding i just started but i know and understand some stuff, i just want to get this bot working i found ...
Way to listen for MessageReactionRemove when the messages aren't cached 22 messages
neat fractal I am trying to detect when reactions are removed from a post in a forum channel. The relevant code looks like this: ```j...
General questions I have in mind, any help is greatly appreciated. 5 messages
honest quarry Hi! I am trying to learn JavaScript (coming from Lua, specifically Roblox’s Luau) with the goal of eventually being able...
node
Command handler, loading commands in 2 messages
pulsar wedge ```js const { Routes } = require('discord.js'); module.exports = (client) => { client.commandHandler = async () => {...
Interacting with a kicked user 9 messages
balmy pelican Hey yall, I am trying to make a verification bot that dose not use a external website (Just checking if the user can ent...
TypeError: Cannot read properties of null (reading 'bot') 9 messages
Register Global Command 125 messages
pseudo quiver Hi everyone, this code takes care of recording all commands globally. However, currently it doesn't work, in the console...
New discord Poll detection 18 messages
wispy blaze is it possible to detect if a message is actually a poll (new discord poll) via API?
Poll message detection 9 messages
Display a random button array 5 messages
quick notch Hello, I created several buttons in a file, then put them in an array to mix them up for random output. Random works f...
node
Set initial volume without enabling inlineVolume 6 messages
timid gull Im using @discordjs/voice and would like set the initial volume for playback because the default is way too loud. But I ...
WebhookClient vs raw request 4 messages
slender elbow What are the benefits of using `WebhookClient` over sending a raw request, and vice versa? Currently, it is just being ...
dev release
Help 47 messages
nimble moth is this actually a thing
Discordjs/voice 2 messages
exotic marsh First time working with it, I have a cron job running eery 5 minutes. In the callback, the bot fetches an array and loop...
TOKEN_INVALID 7 messages
old thunder I'm not able to fix this. Tried resetting the token and adding the new token in secrets
Inviting Bot after authing, occruing 500 error 7 messages
visual rain hello, i have a problem by inviting discord bot. i occur 500 error while authenticating. Bots are invited normally, bu...
Autocomplete options 4 messages
winter minnow hey i have two commands and both have the autocomplete option color, but only one of them works. any idea why?
408 Request Timeout when sending messages 5 messages
glad canopy Hello! Some shards of my bots regularly experience that single messages can't be sent or are sent but it still throws th...
bun
multiple autocomplete 4 messages
whole crown hi, i have a subcommand like this and an autocomplete function that gets the interaction, how can i "see" what option it...
Get Users Message Count 3 messages
shell citrus Hey there folks! Is there a simple way to get the number of messages sent by a user that is not that storage or memory i...
fetchReply() SOLVED 5 messages
iron hollow So I'm making a npm module for discord games using js, I'm having troubles getting the inital messsage of start game in ...
Message Delete is not logging to channel when messaged deleted 2 messages
hushed pond im trying to make a messge delete log embed but its no errors its just not logging to the channel any reasons why? ```c...
presenceUpdate 2 messages
warped wind The presenceUpdate event is not triggering. The intent is passed through and its turned on in the developer dashboard
TS Error 16 messages
buoyant maple ```ts export interface Command { name?: string; // Command names are taken from file names description: string; ty...
Whenever my slash command gets used for 2 times it gives an error 7 messages
empty tree ```node:events:492 throw er; // Unhandled 'error' event ^ DiscordAPIError[10062]: Unknown interaction a...
Switch users screen view to current created channel on guild. 5 messages
vale mesa Hello, can i change thhe users screen/view to a created channel on ModalSubmitInteraction.
node
Send DM if invited 2 messages
kindred rock When a bot is invited to a server, how to send a DM to the person who invited it? using api?
node
Detect when bot webhook has moved to another channel 11 messages
tired field I'm looking to use webhooks to send messages to specific channels in a guild. Unfortunately, Discord provides no way to ...
node
DiscordAPI Interaction 5 messages
node
how can i get thestatus 5 messages
vague forum const members = await guild.members.fetch(); const shuffledMembers = Array.from(members.values()).filter(member => !...
Invalid token 61 messages
sweet nest I'm trying to setup the .env file but whenever I try to run the bot its saying invalid token. I've reset the token and p...
Issue with roles 7 messages
obsidian bane .
Keep getting "DiscordAPIError[50035]: Invalid Form Body tried a couple of changes but same stuff. 3 messages
eternal depot ```js const { SlashCommandBuilder } = require('@discordjs/builders'); const { PermissionsBitField, ButtonStyle, ActionRo...
node @discordjs package
i tried modals but it doesnt work 31 messages
empty tree i got a few errors before then fixed them but now the modals dont work. and ı was following the guide, did i do somethin...
problem with modal 15 messages
elfin coyote hello i have problem. when two people fill out the modal at the same time, it bugs out and throws an error in the consol...
node
Ping User 4 messages
warped wind Hey there, is there a way to go around the fact that pinging a member looks like this? I want to be able to show the pi...
About slash command deploy 3 messages
lone elk What do I have to change in the slash command to be considered deploying to the discord API? and what can I change witho...
Logic confusion when querying data with mongodb 4 messages
fickle sparrow Hello, good morning, I have a problem and I don't know if the query is being performed correctly and this is the query c...
Emoji click interaction 46 messages
unique dust Hey, i made code when author click on reaction get ViewChannel Permission but i didn't work can any body help ?? ```j...
createmessageComponentCollector is not working 7 messages
zinc hull https://srcb.in/NN6a4J8qzS This is my code all the select Manu are working except this one Previously I have faced thi...
node
Sharding Djs 6 messages
languid geyser how to make bot leave and join server logs by bypassing all sharding, so bots that leave and join from sharding will app...