djs-questions

13317 threads · Page 162 of 267

cannot read properties of undefined (reading 'channel') 13 messages
const fetch error 2 messages
I'm trying to get the bot to join the vc that I'm in 10 messages
crisp valley there is an error that says: ReferenceError: channel is not defined, and I'm trying to figure out how to fix that. the...
Event when the bot is kicked from the server 3 messages
warped aspen Hello, what would be the event when the discord bot is kicked out of the server?
Need Help 2 messages
prime arrow i need help pls, send dm
get users banner icon 3 messages
silk dagger is there a way you can get a users banner picture or like their banner colour
Tags in Webhook forum post 3 messages
chilly wing How can i add a tag to a post created by a webhook ? I tried to use the `appliedTags` parameter but it didn't work... I...
is it possible to automatically "purge" a channel using a bot? 2 messages
dusky hinge I want to purge a channel if it's corresponding voice channel doesn't have any users on it and it's text channel hasn't ...
Webhook not creating/sending 113 messages
paper iron So I have a daily message system that creates a webhook if there is none or sends a embed message if the webhook exists....
Getting this error when trying to run my bot on pebblehost server 2 messages
nats.js web-streams-polyfill interferes with sending attachments 3 messages
cyan prawn I've recently updated nats to 2.8.0 where they introduced web-streams-polyfill as a dependency. The package is set to gl...
@discordjs package
State Management 2 messages
rancid pumice Not discordjs specific question, but what's the preferred way to handle simple in-memory state for a discord bot. For e...
Message Commands 8 messages
Error in discord.js/ws 25 messages
barren kraken Hey guys! I'm using the discordjs/ws separately for an own library, and I have this error when connects to the bot
Sweeping guild member cache 6 messages
spice ginkgo If I set the sweepers as below, what will it do? - sweep all guild members of a guild? - sweep only inactive/unused mem...
if (this.deferred || this.replied) throw new Error('INTERACTION_ALREADY_REPLIED'); 26 messages
wary hill hello, I need help when I do the /search command the following error appears:
no such file or directory, scandir 15 messages
tawny vapor Keep running into this error but if you look at the picture you can see the folder
discord.js error codes 6 messages
visual widget is there any docs about all the error codes so i can handle them my way? ```js const errorCodes = [ 50013 /*Missing Pe...
Unknown interaction error 2 messages
Select menu reply 15 messages
cinder wraith Hi, I have an error which I do not know how to fix the first time I have such a thing, could someone help?
help for "One-time button" 30 messages
civic plume I have a button script, after pressing it will reply a thing, and I want to let the original message (which sent the bu...
Bot crashes if there's an interaction before it refreshes / commands 57 messages
frosty mulch When my bot is trying to start up, if an interaction happens before it ~~reloads global commands~~ logs in, it will fini...
are slash commands registered on bot install? 5 messages
hoary owl im confused with the flow. https://discordjs.guide/creating-your-bot/command-deployment.html#command-registration I've ...
json help 8 messages
little canopy hello, i have a json array that looks like this (see attachment), how can i use discord.js to get the imageUrl?
Interaction already awknoledged 4 messages
west iron code: ```case 'remove': const name = interaction.options.getString('name') const deleteS...
Help me pls 2 messages
opal owl I don't understand the error and how to fix it. " Cannot read properties of undefined (reading 'id') "
Hello Error 5 messages
silent plover Error
Commands and status do not work. Doesn't output anything to the console. 6 messages
white nacelle I can not understand what the problem is, I checked the code, but did not find anything.
Select Menu Default Option 7 messages
plucky relic Is there a way to add a default selected option to a SelectMenu?
Error: {"message":"401: Unauthorized","code":0} 3 messages
proven wyvern Used an example from the official discord website. What could be the problem? https://github.com/discord/discord-example...
COMPONENT_LAYOUT_WIDTH_EXCEEDED 7 messages
plucky relic I try to do a StringSelectMenuBuilder within the same ActionRowBuilder as a ButtonBuilder, but it says: COMPONENT_LAYOUT...
Discord.JS ShardingManager and Fastify 5 messages
fathom hawk One of my Discord applications is growing at a good rate and it's getting to a point where I'm going to need to start me...
author id 6 messages
snow shuttle how can i get author id 🙂
Interaction has already been acknowledged. 17 messages
modern merlin hello everyone i got this error
error when loading slashcommands 23 messages
Select menus Error 9 messages
GuildMemberAdd not working 18 messages
silk dagger setting auto-roles and welcome messages for multi-guild bot, however, upon testing neither seem to work, with no outputs...
available user 3 messages
snow shuttle how can i check if user is in server or not ?
Set forum defaultReactionEmoji 2 messages
onyx wasp how would i set the defaultReactionEmoji for a forum channel? i want to use this emoji 🛒 but i cant get it to work.
GuildMemberUpdate didn't work 5 messages
vital scarab What's wrong? Code here: https://pastebin.com/YB4gbmNC
Memory leaks 3 messages
spice ginkgo Hey everyone! I need some help with a Discord bot I'm working on using the discord.js library. The bot is set up as reco...
What are the optional dependencies mentioned on the docs? 13 messages
finite mulch Just curious, what are these for & how can I use/benefit from them? They're not mentioned anywhere else on the documenta...
Sharding for a large bot (250k guilds) 15 messages
static knot I am currently using ShardingManager and shards are being spawned one after the other. Discord's Get Gateway Bot API end...
Trying to use voice of users as an audio stream 4 messages
frosty sierra Hello, I'm trying to make a bot that capture the voice of users in a channel and stream that in another voice channel. B...
@discordjs package
No console log and no errors...anyone can help? 3 messages
fallen dome ```js client.guilds.cache.forEach(async (guild) => { let voiceChannels = guild.chann...
Question about the docs 4 messages
marsh grove What version of the docs does stable point to? Its definitely not 14.7.1, I'm just not sure what version it is. Also do...
Error with options 3 messages
brazen hornet ```js const { EmbedBuilder, ApplicationCommandType } = require ("discord.js") const ms = requir...
edit message after button click 5 messages
plucky relic I try to edit a message after a click on a button, but the following error appears: ``` message.edit is not a function ...
.setActivity not working 9 messages
silk dagger wanting to set bot's activity, but it's not working, no outputs. ``` const {ActivityType} = require("discord.js") modul...
New update changed TS typings of StageChannel and now I'm getting a million errors. 10 messages
full gulch Hey! Recently I updated my Discord.JS version to v14.7.1 and the TypeScript compiler immediately started crying about mi...