djs-questions

13317 threads · Page 104 of 267

Something with BitFieldInvalid error on my bot. 15 messages
velvet latch i am trying to solve this problem, he start about 1h ago /Users/macbookdrink/Desktop/Astarion-Bot/node_modules/discord....
Issues with sending embeds 57 messages
whole veldt Hi, I have a discord bot which sends DMs directly to users (for notifications) including an embed, recently, ive done an...
how do I set the send Typing() timeout? 16 messages
grand pier I have a bot that sends a response to requests for a long time, I would like send Typing to work until the bot responds,...
Audio Not Playing 7 messages
magic zephyr Discord JS Ver 14.13.0, Voice ver 0.16.0, Node 16.14.0 The bot joins the channel that I am in, however it doesn't play ...
@discordjs package
A certain command crashes the bot. 2 messages
formal creek Logged in as The Bretain#4008 Connected to MongoDB Registered global application commands: travailler, balance, givebadg...
my bot cannot be connect to discord 40 messages
twin comet I am doing my first bot, and my first command, but my bot do an error when i execute my command
Voice self-disconnect not working with Lavalink 153 messages
tender maple Hello, I am making a new version of my music bot using Lavalink. Everything works good but something strange happen. I t...
New application commands not appearing. 5 messages
formal creek i've recently added new commands to my code and it doesn't appear on discord. I did restart the bot, I restarted my disc...
TypeError: client.handleEvents is not a function 20 messages
last wagon Only lately stopped working, Worked perfectly fine before unsure whatd going on.
emoji 3 messages
open gale Why did the emojis become like this? The bot owner has join the server that has the emoji.
How can I pull which invite the user used to join the discord 9 messages
nimble wolf code invite
How to get messageID of message with button components 2 messages
inner rose Hey so I have a message sent with 2 button components, and when I press the button I want to get the messageID of the se...
Application commands not registering 16 messages
gusty harness For some reason my application commands haven't been registering lately. No errors, the call to `rest.put()` just never ...
Get formatted error from CombinedPropertyError 2 messages
crystal crag Is there a way to get the pretty formated text from a CombinedPropertyError (or the errors that come when you make, for ...
MessageCreate -> message.reply({.... 9 messages
willow flame `await message.reply({ content: 'Please only send an image, or create a thread to reply to the picture!', ephemeral: tru...
@discordjs package
Invalid Form body 73 messages
last wagon ```js await rest.put( Routes.applicationCommands(BOT_ID), {body: client.slashCommands}, );...
Error: ENOTDIR for no reason 33 messages
hybrid palm index.js file : ``` const fs = require('node:fs'); const path = require('node:path'); const { Client, Collection, Event...
Resend Messages in Another Chat 7 messages
viscid mist Hey! I'm having a problem downloading and uploading videos. This is code that saves an attachment in a buffer and sends ...
Command Autofill Picture 4 messages
embed with copy bar 3 messages
prime lotus how to make these?
Reference Error. 6 messages
last wagon There is an issue in my command handler and no matter what I change it won't work. Code and Error Is attached.
Duplicated Application Commands 15 messages
Is there something like a "converter" to update old Discord.js? 2 messages
night hemlock I have discord.js 12.5.3 and I want to quicken the process of updating, is there something that can do this automaticall...
Would it be possible to make this have a generic type? 11 messages
arctic siren ```ts export function generateActionRows<T>(buttons: ButtonBuilder[]): ActionRowBuilder<T> { const actionRows: Actio...
Unexpected end of input for no reason. 2 messages
Code Not working 52 messages
plucky moat ```js const Discord = require('discord.js'); const client = new Discord.Client({ intents: { typing: false, pr...
How do I create buttons under messages? 6 messages
grand pier I have a message how to link buttons to it? I understand MessageActionRow, Message Button, Message Embed are outdated ``...
Custom Status 2 messages
gloomy flame Does the custom status support button ect like User's Custom Rich Presence?
DiscordJS & Discords Voice Notes 12 messages
vale burrow I was wondering if it’s possible for bots to detect voice notes, if so, my initial plan is to make some sort of like His...
Is it possible to fetch a message after the message you fetched by id 3 messages
mint rivet title
Direct message not being sent 14 messages
terse remnant **The bot is supposed to send a direct message to the user if he used a blacklisted word in his message. I’m using disco...
SlashCommandHandler - Not answering 284 messages
hallow briar So I've created the deploy-commands & slashcommandhandler from Discord.Js guide docs, my commands do appear when I use /...
Twitch 6 messages
inner matrix Hello I would like to know how to make a live twitch announcement system in discord.js v14 version? If someone has tips ...
Error using slashcommandbuilder 3 messages
hallow briar I installed the slashcommandbuilder with the DJS Docs Guide
Best way to handle ready event failure 17 messages
manic vault Recently my bot had a lot of downtime because it auto-restarted but never got properly readied; it seems it silently err...
discord.js ignores select menu input 32 messages
wanton quiver ```js const { Events, EmbedBuilder, ActionRowBuilder, StringSelectMenuOptionBuilder, StringSelectMenuBuilder, ComponentT...
Add role to user 36 messages
random vine Hey guys, im trying to add role to user but it didn't work ```js const guild = client.guilds.cache.get("107854...
Error checking member role permissions 7 messages
night hemlock ## Error ``` if (member.roles.highest.position >= interaction.member.roles.highest.position) { ...
Is it possible to set a "global" bot status instead of a per-shard status? 2 messages
halcyon tartan Essentially, I just want to be able to update the status once for the entire bot. Since I grab data from an API, and an ...
Best way to get userIds in a role without hitting API limit Hourly 5 messages
lapis spoke I have to get all the userIDs that have a role in a guild on an Hourly basis. It only returns the members in cache that ...
Does anyone know what it is every time I delete it, It fills me up on its own 2 messages
coral blade .
InteractionResponse#awaitMessageComponent is not working with modal 19 messages
dense lodge <https://gist.github.com/danthonywalker/c369f391b8524388866ac9a74f4e9e44> So the flow goes like this 1) `showQuestionMo...
How do I remove a role from a member 3 messages
wintry star I've been able to add a role this whole time. But I can't seem to remove it. It always gives me an error, says I don't h...
More concise way to edit sent embeds 7 messages
toxic bridge I am currently dealing editing the fields of an existing embed as a reply, where I'm only changing the fields and not th...
How do I send Discord Embed? 8 messages
grand pier I have a code that sends Discord Embed however does not see the MessageEmbed namespace what could be wrong? ```js // Imp...
How do I get the bot to respond to DM messages that are written to it from the user? 33 messages
grand pier I still can't find an example where there is an event that would trigger whenever a user writes a message to a bot in th...
select menu emoji 17 messages
bleak dew i don't understand this error, i added emoji but still got error !
@discordjs package
Can't Disable EmbedBuilder Validators 23 messages
viscid zinc I'm still getting validation errors for EmbedBuilder after using disableValidators()
Best way to take a second argument for slash commands? 21 messages
drifting apex It pretty much is all explained in the title. I have working slash commands, but I would like to take a second argument ...
Events vs Audit Logs 5 messages
onyx warren What is the preferred way to log actions happening in a guild ? For example if I want to log when a channel is created, ...