djs-questions

9202 threads · Page 135 of 185

channels not creating 22 messages
cyan forum hey folks can anyone check this code if I run the setup commmand and choose options voice and default only the category ...
Bot Shards Keep Reconnecting After Reboot 33 messages
drowsy crest Has anybody else experienced a similar issue where their traditionally sharded bot gets stuck in a shard reconnect and b...
Cannot read properties of undefined (reading 'length') discord.js 8 messages
regal sluice Attached below is my code, you enter a roblox username and it fetches the ID, however it only works once. Then gives the...
help discord api error 20012 10 messages
south charm help discrod api error 20012
Can anyone help me make it so when someone opens a forum post it sends a message in the forum post? 8 messages
dusk sable Current Code: ```javascript client.on('threadCreate', async (thread) => { if (thread.parent.type === ChannelType.Gui...
isJSONEncodable is not a function 23 messages
fierce iron I'm getting this error on 14.10 when trying to send interaction.reply() with embed and buttons. I'm not sure which objec...
Option based on the Choice [SlashCommands] 3 messages
dusty thicket Is it possible that the "side" option only appears for the user if he chooses the "Coinflip" choice? Like if he chooses ...
channel permission overwrites 2 messages
dense kraken ```js const channels = await guild.channels.fetch() channels.forEach((channel) =...
Error: Module '@discordjs/builders' has already exported a member named 'Awaitable'. 10 messages
limber dock Some time between 11 hours ago and 30 minutes ago, I started getting this error from my CI. I didn't change any of my di...
Unknown Interaction 65 messages
hallow briar ```js module.exports = { data: new SlashCommandBuilder() .setName('hxbuy') .setDescription('This is used by ...
Get proxies djs 4 messages
hoary trail How can I use proxies while using djs for example when i login my bot i want it to be under my proxy
Error: Error code must be a valid DiscordjsErrorCodes 24 messages
zinc snow In my client class I have the following code: ```js getInvite(){ return this.generateInvite({ scopes...
Attachment sending in wrong channel. 18 messages
strange wraith Hi, the attachment is sending in the interaction channel and not logging channel. Anyone know why?
Must be 25 or fewer in length. 6 messages
orchid trail is there a way to make autocomplete longer than just 25 options?
Sharding related Question 2 messages
dim violet Can sharding to 2 different physical servers help against downtime, how does it work? When a shard goes offline what hap...
Client option for enable/disable Message.method actions? 12 messages
snow anchor I'm suddenly getting a lot of console.error messages pouring in, for actions on Message and TextChannel objects, which a...
Help with file/send 9 messages
strange wraith Hi, I require some help as this code doesn't work.
Prevent Autocomplete from Caching Already Requested Inputs 3 messages
jovial nacelle Is there a way to prevent discord from caching autocomplete results? I have `/command choice-a:foo, choice-b:bar` where ...
Is it possible to take bot permissions from a channel? 3 messages
ionic sky I'm having problems with the bot's permissions, like, the position is allowed to send attachments, but the channel does ...
Why add role says invalidtype 13 messages
junior widget ```const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js'); const { teamchanegeChannelID, CCroelId } ...
Error [InteractionNotReplied]: The reply to this interaction has not been sent or deferred. 15 messages
rancid current Hi, Good day, I keep getting this error or an interaction doesn't exist error when they do exist. and i am deferring the...
How to get mentioned user username!? 15 messages
ocean canyon Hello guys, can someone let me know how to get a mentioned user username? Trying to make a bank bot but I'm not able to...
Checking to make sure a message still exist (Unknown Message Errors) 7 messages
drowsy crest How can I check if a message still exists after I've gotten the message? I keep getting Unknown Message errors because I...
bot not working 10 messages
fresh compass hihi my bot isn't working and there seems to be an issue with the code? the bot is still offline and the link to the co...
interactionCreate event not working 48 messages
ocean canyon Hello guys, I'm trying to make a simple bot to reply to a simple slash command but I'm getting an error that says: " Typ...
unknown interaction 16 messages
tender flame Hi guys, I have such a problem, I'm outputting information from the Overwatch 2 game according to the data entered throu...
message.webhookId issue 5 messages
fallen dome message.webhookId holds a value even if no message is sent via webhook on the server..how is this possible?
i have a problem with discord.js i want to do a command ban 31 messages
frosty relic ```js const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js'); module.exports = { data: new Slas...
i have a problem with discord.js i want to do a command ban 5 messages
frosty relic ```js const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js'); module.exports = { data: new Slas...
What is the badges numbers ?? 7 messages
open nova In my user-info commands i have number what is that ??
DiscordAPIError[10062] 12 messages
limber meadow Whenever I run a command, it gives me this error.
Weird error 15 messages
hallow briar What is wrong here?
messageCreate even not firing 8 messages
copper thorn here is my code: ```import { Client } from "discord.js"; import { Commands } from "../Commands"; export default (clien...
Bot SHUTSDOWN after some time 12 messages
radiant knot I'm using discord.js V14.9, and my bot shuts down without any exceptions in 2~3mins. My all code works nice, and when bo...
How do I get the referenced user id from a referenced message? 12 messages
pliant wing ```js let prevMessages = await message.channel.messages.fetch({ limit: 15 }); prevMessages.reverse(); ...
TypeError: interaction.isChatInputCommand is not a function 20 messages
crystal lark after years of not coding i have finnaly come back and did some coding but when i tried to use my command handler it doe...
Discord.js Error 28 messages
subtle sandal I get this error randomly and the bot crashes ```js Error [TypeError]: Cannot read properties of null (reading 'id') ...
Message Reaction Collector not working 8 messages
empty path I using slash command to delete database and I have a reaction collector for my user to confirm that they want to delete...
while a command is executed I cannot do another 18 messages
hardy marsh ```js const {getMatch} = require('../utils/chess-data') const {redifMatch} = require('../utils/createCanvas') const { Ap...
Discord emoji question. 9 messages
lofty gyro Info please
Can you tell if a User was added or removed in a User Select Menus? 4 messages
mellow frigate In a userSelectMenu is there a way to tell if a user was added or removed from the selected users
AuditLogEntry.executor is null 3 messages
fallen dome Why AuditLogEntry.executor is null when my bot delete a webhook?
Could not find the requested invite 3 messages
fickle brook ```ts export default function (message: Message) { if (message.content.toLowerCase().includes("discord.gg/")) { ...
Sharding support 15 messages
scarlet geyser Two questions: Is djs internal sharding good as the sharding manager or not? What are the differences? Is it possible t...
client.isReady() type guard might be broken 15 messages
vale oxide It just doesn't change the type for me... https://media.discordapp.net/attachments/824411059443204127/11019428593740145...
Get posts with in a Forum channel 2 messages
past obsidian I'm tried this but its returning me stuff from other channels on that guild ```js const $channel = await client.channel...
Command dont work 5 messages
wind needle yo, why doesn’t my bot write anything when I do !test ? Here’s my code: ```const Discord = require("discord.js"); const...
How to avoid interaction listener mixing commands 13 messages
tacit osprey Im coding a command which update a user from a database, it returns an embed message with user's information and it have...
Slash command options 8 messages
empty path Why my slash command option dont have getSubcommand or getSubcommandGroup, etc...
message.member.permissions.has(PermissionsBitField.Flags.ManageMessages) 4 messages
sudden turtle Is this code returns true if the member has permission on channel which the message sent?