djs-questions

13317 threads · Page 161 of 267

interactionCreate, and interaction.update with interaction.showModal not working :( 7 messages
humble ibex Hi, I have a small question about the code itself, so I'm learning bot programming, everything is fine, except for one o...
What can cause FetchedThreads.hasMore to be true? 20 messages
livid cape Does GuildChannelManager.fetchActiveThreads have a limit or will it always fetch all threads? FetchedThreads.hasMore exi...
When will the library become ESM? 17 messages
barren cobalt It makes it very difficult to write in typescript with commonJS. It would be nice if the library would support ESM since...
Cannot use discord-api-types V10 5 messages
velvet goblet Hi, I was making a command that I wanted to only be usable by those with admin permissions, and I set the permissions on...
@discordjs package
Bot not responding to the command input 23 messages
kindred flint when i type ping it doesn't respond to pong i have the example from discord.js.org i tried even v12 discordjs and the la...
Voice channel reactions 4 messages
queen glen Is there a way for me to detect when a user uses reactions in a voice channel. Not the chat in the voice channel. Some k...
Trying to make a command that replaces all the channels and categories in a discord 4 messages
tropic bane Error: Cannot access value before initialization
DiscordAPIError[20012]: You are not authorized to perform this action on this application 3 messages
How to fetch all online users in a guild, including idle and dnd 14 messages
gloomy bear See title Code: `guild.members.cache.filter(member => member.presence?.status === 'online' && !member.user.bot).size;` ...
Roles being added back are more than provided? 48 messages
dull wing Im literally removing all specific roles, and readding only two.. but for some reason its adding 4 back??? this doesnt m...
Error - ExpectedValidationError: Expected 7 messages
worthy trout Full error: ```js throw this.error; ^ ExpectedValidationError: Expected at InstanceValidator.handle expec...
Searching across multiple criteria using Javascript and MySQL. 3 messages
stark horizon Hi! I created a Customer database using MySQL and Javascript. Five types of searches can be made in this database. For e...
How to add a type for StringSelectMenuBuilder 13 messages
tiny flint So I'm trying to add `ComponentType.ChannelSelect` to a `StringSelectMenuBuilder` but after looking at documentation, I ...
InteractionCreate and MessageCreate do not work 27 messages
short vigil I was trying to recreate the code in the welcome section of the documentation but then realized that for some reason 'in...
How do I get the bot to do something through a regular javascript method? 9 messages
near tangle Instead of using "client.on()" I wanted to use a regular method to get the bot to perform an action. This is because the...
slash command string limit 6 messages
queen glen Is there a limit to how many characters I can put in a slash command string option?
mousehover on an interaction property says any vscode 15 messages
median sedge How to fix?
How to stop users from using bot commands in their dms? 10 messages
rare snow I know I need to do something in interaction-create.js but I dont know what.
Unknown Webhook 5 messages
plucky relic So i made a message with a close button and if the close button is clicked I want that the message is deleted. This is m...
Error when trying to get role 97 messages
soft stone Hi, I am currently developing a discord bot for a discord server. Even though this isn't the first discord bot I am deve...
ChatInputCommandInteraction.deferReply() & .editReply() w/ different ephemeral property value 8 messages
patent panther the way ive learned to handle slash commands is to defer the reply as soon as possible if i am going to do something asy...
reply with message id 13 messages
patent root is there a way to reply a message with the message id? for example, using a command for pre-written responses that takes...
try & catch errors 7 messages
tall whale Should I put a try catch on the entire bot, so if something throws a random error, but bot won't crash? Or it's not some...
discord.js v11 3 messages
primal ember I am working on a bot using eris and discord.js v11(I would rewrite but it's not my bot). I am trying to load an attachm...
New to v14 18 messages
thin elk I came from v12.5.1 and i'm trying to update my code to v14. What happened to `client.on()`? This is an example ```js cl...
Cannot read properties of undefined (reading 'find') 7 messages
tawny vapor Working on a giveaway cmd and I keep getting this error but idk how to fix it so I was wondering if someone can help me
Is there a way to write pre-revealed spoiler text 4 messages
simple pewter Like ||this|| but it would be revealed
"/" command actual? 2 messages
Detect bot's inviter 3 messages
balmy flame Is there any way to find the user that invited the bot when it's added to a guild?
Mass Unmute command 7 messages
celest sentinel I'm looking for a command in which where a member is muted by a bot(Gear or Dyno Bot) and I would like to unmute them wi...
Which operations require guildMember.manageable or moderatable? 4 messages
serene walrus I'm looking at the docs here but I don't know which operations I need to check if `manageable` or `moderatable` for http...
Application command in discord user 2 messages
How can I create a slash command builder without creating a commands directory? 36 messages
noble sphinx I tried to create a slash command builder but don't know how. I saw that example from documentation but I really don't ...
Discord Gateway - Multiple Connections simultaneously 2 messages
pine canyon Hello, is it fine to open up several websocket connections from the same bot? Are there any side effects I have to take ...
Emojis not working in the bot 5 messages
vivid forge hi in my some commands i have added the option of emoji in the bot response so when i run the command the response the c...
Lineup messages 5 messages
glad venture How to line up these messages?
When are guild members not cached? 7 messages
serene walrus How do you know when you need to use `guild.members.fetch` instead of just going to the cache directly?
Bot not welcoming new members 5 messages
crisp valley I have this code in index.js yet when a member joins the server the bot stays dormant. help would be appreciated! the c...
How can I access my bot's slashcommands ID's to reference in a message like: </name:id> 4 messages
manic tundra I want to return a reply with a reference to another command but I don't know where I can get the command ID from. The c...
Bot ignoring messages sent in stage channel 11 messages
gaunt python I'm having an issue where the bot is ignoring messages sent in stage channels. Messages sent in other channels are handl...
How can I make slash command NSFW? 2 messages
dawn zephyr I used `.setNSFW` but It didn't work
Mongo Bd 2 messages
random sonnet I need help with Mongo bd
Problem with deploy-commands.ts 2 messages
cosmic nexus i'm having this error: ```sh "C:\Program Files\nodejs\node.exe" deploy-commands.ts C:\Users\danyf\WebstormProjects\bivix...
How to pass along data for multiple interactions (select menu > select menu > select menu > modal) 5 messages
hearty stream I'm trying to figure out how to chain multiple select menus to filter down options and end the process with a modal, the...
collector.on('collect') does not collect my input although I have content 13 messages
lilac anvil I have this messageCreate event and I want it to log the whatever key I press . It does log the content of my input when...
Error with permissions when running the bot 8 messages
candid sable im using discord.js version 13.6.0. node: v19.3.0 I get the following error when i run the bot. https://pastebin.com/bZk...
How to make Custom Canvas in DJS v14 3 messages
daring cave So question: how do I make a custom canvas with custom fonts, background, images, etc.? P.S. I’m not wanting to copy t...
my bot randomly got this slash command 39 messages
hollow mortar My bot randomly got this slash command for active dev badge i didn’t code or add it how should I remove this?
can't get avatar per server with user.ID 30 messages
topaz kraken Hi guys, so there is my problem, I have an avatar command that displays avatar per server & default avatar, this actuall...
Bot Disconnects From Discord 18 messages
warm snow Hey Guys 🙋‍♂️ I am currently experiencing that my bot randomly disconnects from Discord (Offline and not responding) bu...