djs-questions

13317 threads · Page 148 of 267

How to add a User option inside of a slash command? 9 messages
fallen crescent using the `ApplicationCommandOptionType.User` gives me auto-suggestion on options and gives me a list of members/users. ...
New Bot faster with editing 4 messages
faint sinew I have a question. I created a new bot and he is faster with editing embeds. He can easy change every 1s the embed. But ...
V12 discord.js bot help 6 messages
limber mica Hello I search someone to help me to debug a bot
How to set a bot's status to a game's player count? 52 messages
Trying to generate data in a table 12 messages
mellow axle I've seen that you can use basic html in a discord embed but it's not working in Discord.js. I'm not sure if there is a ...
Permission to add role? 14 messages
fathom cliff help im trying to make a bot, it worked perfectly on my test server with test accounts but then i put it into production...
channel.isTextBased is not a function 5 messages
leaden hazel Hi , i coded a command and it worked for a time and suddenly this error appeared What is the wrong 🤔?
error 8 messages
rigid knot How to fix interaction failed in djs v13
Prevent bot from crashing when DMing a member that has DMs closed or bot blocked. 2 messages
TypeError: Cannot read properties of undefined (reading 'FLAGS') 52 messages
rare reef Hello, I got an error with the flags. Could someone help? ```js const { Client, Intents } = require('discord.js'); cons...
customId 23 messages
Emoji Selection 8 messages
heavy haven Hello. I am looking for a way for users to select an emoji, preferably from an interaction similar to (for ex) a `RoleS...
Where can I find the options for creating a thread? 4 messages
fathom cliff this guide page <https://discordjs.guide/popular-topics/threads.html#thread-related-gateway-events> has ```js const th...
Syntax Error, unexpected token m 41 messages
lone bridge I need help
i have a problem with guildMemberAdd event , is repeated twice .. how i can fix that ? 21 messages
hearty apex i use console.log() to check it the code : ```js const Discord = require("discord.js"); module.exports = async (client) ...
Why channel.type is not working for me without any errors 39 messages
dawn zephyr ```js client.on("messageCreate", async (message) => { if (message.channel.type === "DM") { console.log("Tedt"); ...
How to import "JoinVoiceChannelOptions"? 7 messages
lethal spire Gives error.
@discordjs package
Stop the cap 4 messages
dawn meadow It’s 1st of April. Discord.js is being maintained. But nice joke 🤣😂 We all love our discord.js developers ❤️
My SlashCommandHandler isn't working.. 77 messages
hallow briar No clue how to fix it.. ```js const { Client, Collection, Events, EmbedBuilder, PermissionsBitField, Permissions, Mess...
Is it possible for a slashcmd with multiple param options to require at least (either) one of them? 24 messages
tepid glacier I want to create a slashcommand that allows users to search by name (type 3) OR by Id (type 4), but they MUST enter at l...
How to use the .addChoices command 2 messages
mellow kite ```.addStringOption(option => option.setName('game') .setDescription('game') ...
D.js bot using 8gb ram 47 messages
quiet ermine A few months ago I'm rewriting my old bot in python for discord.js I made the sharding system according to the guide, al...
The application did not respond 33 messages
obsidian zephyr Im receving an "The application did not respond" error when I try to run a simple pong command
command name invalid but can't figure out why. 4 messages
jolly sedge ``` { "name": "dalle", "description": "Generate an image based on an inputted text string.", "options": [ { ...
Cant get users banner 15 messages
jagged flame Im currently trying to get the users banner through `interaction.user.bannerURL()` but it is returning `undefined` (same...
Trying to start a scheduled event 11 messages
coarse sigil I'm running into an error when trying to start a scheduled event: Error: ``` DiscordAPIError[50035]: Invalid Form Body ...
Bot is not receiving messages after a while 3 messages
soft palm I am using the `messageCreate` event and registering the handler with `client.on("messageCreate", function (...) { ... }...
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'file-type' 21 messages
brave pewter `I get this error and dont know how to solve this.` ```Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'file-type' im...
Right Command Configuration 48 messages
sick trellis I would like to have the description input option behave similarly to the option (containing cross after it, it could be...
Invalid emojis error on help and setup 15 messages
Do I need to cache guild.members.roles to check permissions? 8 messages
trail cedar In my cache manager I have `GuildMemberRoleManager: Infinity` but I don't need this. There's only one role my bot needs ...
Interaction aint saving 3 messages
indigo crown ```js // ---> Adding the needed collections const commands = []; //client.commands = new Discord.Collection(); // Place...
High usage leak after updating to v13@latest (13.14.0) 45 messages
stark lynx Does DJs have any known usage leak? Because after updating djs v13 to latest after 5h the usage go over 26gb ram and 60%...
This code no longer works when it worked before! 4 messages
grizzled delta I don't understand why the code doesn't work anymore, the bot joins the room, but no sound comes out, no apparent error....
Error while building with tsc 4 messages
open geyser Hello Guys, i'm having this error after updating from v13 to v14 when building with tsc: ```SHELL $ tsc node_modules/dis...
Discord.js Cannot use .send 8 messages
violet lintel When command ran, errors. Code: ``` async execute(interaction) { const db = admin.database(); db.goOn...
how could I use autocomplete with mongodb 6 messages
night needle I got no clue where to start
[GuildMembersTimeout]: Members didn't arrive in time 39 messages
ionic flax Hi I'm getting an error whereby we receive: "Members didn't arrive in time"   ```Members didn't arrive in time.\n at Tim...
DirectMessages intent messing with MessageContent 24 messages
rotund tartan ```js let MessageContent if (message.embeds.length > 0) { if (message.embeds[0].image) { if (!message...
TypeError: Cannot read properties of undefined (reading 'channels') 55 messages
signal rock pls help code: https://hastebin.skyra.pw/ayomarexar.ts error: https://hastebin.skyra.pw/rolobikima.php
how do you get access to your instantiated `discordjs.Client` from imported files? 12 messages
fathom cliff I can't do `export client` and import my main file, because that would create a circular dependency. how is it usually...
Error 7 messages
indigo crown See image of error
Slash commands not detected 19 messages
How can I prevent the messageDelete event from emitting if the bot deletes the message? 23 messages
regal pewter I dont want emit the messageDelete when i use message.delete()
Bot Voice 2 messages
Get author of thread channel 3 messages
pulsar fulcrum Hey ! I wanted to know, I didn't see how cn I get the author of a thread (ThreadChannel). If anyone knows how, I would ...
TypeError: channel.isTextBased is not a function 3 messages
gaunt ether For some reason started recieve this error on bot startup.
discord.js thread problem 2 messages
invalid form body 7 messages
spiral steppe There was an error: DiscordAPIError[50035]: Invalid Form Body
What exactly is Events.debug? 6 messages
rigid ginkgo I am just curious on what the .debug event does.