djs-questions

9202 threads · Page 158 of 185

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...
998292157150535700
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...
help 2 messages
meager seal Hey I just made a discord bot on Replit and i started running it and it just keeps spamming this what shall I do
BitFieldInvalid whenever I run ``node index.js`` in VSCode for my Discord bot... on... npm?? 64 messages
hollow ginkgo Hi, I have no clue if I am even in the right place to ask this. I am desperately trying to find a discord community that...
Issues with Autocompletion with ID and value 11 messages
real cradle Hi, I am trying to offer Autocompletion options with values from a database. I am selecting desc_de and itemID from the ...
How can I make slash commands available in dm's? 28 messages
ornate notch I want to use my bot's commands in his dm's but i can only use them in my server. how i can make them avilable in dm's t...
Channels within a category 8 messages
warped aspen Hello, how can I know how many channels are in a category?
welcome bot 2 messages
Application not responding after sending one command 40 messages
errant furnace Unsure what the cause of this is, just a few hours ago it was working perfectly. I had just recently kick/added the bot...
Discord Embeds : Show image in title / value 7 messages
muted eagle Hello everyone, This is my first message on this Discord, I hope I won't do any mistake while creating this question 😁...
how to parse command arguments with TS? 7 messages
hoary owl trying to parse slash command arguments but not sure what type interaction should be... thanks
Deny send messages 3 messages
warped aspen Hi, I am trying to remove the permission to write in a channel but it is not working, I probably have something wrong bu...
Unknown interaction 2 messages
viscid pollen ```js await interaction.deferReply({ ephemeral: true, fetchReply: true }); await interac...
DiscordAPIError[50013] 15 messages
snow shuttle why i can't kick user! i gave the bot all permissions and all intents
Bot stays offline/unresponsive after reconnect 4 messages
drowsy shoal I have my bot deployed on a server, which restarts its internet router every day at `4:32am`. To handle this, i implemen...
Change voice channel name 9 messages
warped aspen Hi, I am making a channel that counts the members of the server, but when I update the number of members in the channel ...
RPC WEB 6 messages
rigid stream Does it possible to use discord RPC on a website ? Because i need to use it and need it XDDD
1003448629866020986
Message System thread 15 messages
cloud wren Hello, is it possible to suppress the message when a thread is created? THANKS
setUserVoiceSettings() not working... 1 messages
sullen cargo Hello! I am very new to the discord.js library. I have managed to get some example code to work and communicate via the ...
1003448629866020986
How to refer to #Customize Community / #Browse Channels? 2 messages
dusky flicker How do i make bots refer to this like how we type <id:customize> & <id:browse> ?
Slash commands don't works 20 messages
fallow coyote Everytime when shard sends a heartbeat, my bot doesn't answer to any slash commands (application doesn't responding mess...
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role. 35 messages
atomic hull what is problem?
How to edit a embed message using buttons? 4 messages
tacit osprey Hey, im trying to code a embed message with some fields that i would like to update using buttons, but i dont know how c...
How bot run works? 21 messages
native rune How does the bot launch process work? That is, how can my computer accept requests from the discord server? Is it possib...
How do I get the highest role in the array and among the roles the user has? 3 messages
sly furnace ``` var allroles = Array.from(member.roles.cache.filter((r) => r.name.match(/^[0-9]+$/))); var highest = member.allroles...
How to create a new event listener and have it used on another file? 3 messages
lilac anvil Hi everyone. I just made a Discord music bot for myself by following a video on Youtube. I made a lot of commands for it...
I want to get all the roles with only the numbers that the user has. 7 messages
sly furnace ```const allrole = member.roles.cache; const highest = allrole.reduce((prev, r) => r.comparePositionTo(prev) > 0 ? r...
user undefined 13 messages
severe nimbus Hello, why is user undefined?
Channel permissions 3 messages
warped aspen Hi, I'm creating a voice channel with the following code and I don't know how to make it accessible only to people with ...
Cannot find module '@discordjs/rest' or its corresponding type declarations. 9 messages
fast dragon I get this error message after I installed discordjs/rest and discord-api-types Should I install something more? package...
998292157150535700
discord.js Sharding 17 messages
terse spoke i want to make 1 shard handle like 5 servers
Slash Command Only Works Once 4 messages
torn zephyr I took some time away from discord for a bit and in the meantime, my bot went down. One of my commands now is suddenly g...
Error when replying an embed within a collector 15 messages
dim ether I have this collector within a slash command that works perfectly fine when the reply is set to send a normal message. H...
Hide output from console. 15 messages
agile bridge Hey, is it possible to hide CLI output whenever sending messages to a channel etc? ```javascript ... console.log("ready"...
Passing data to next interaction without individual collectors? 43 messages
still trail As far as I've understood discord.js you can either use a global event `interactionCreate` listener or you'd create indi...
Select menus with several options at the same values 9 messages
static ether Do you know why one can make a selection menu with several options that have the same values? This is essential if I w...
What means this? 25 messages
static walrus Look this is my error:
is it possible to know if a / command was done in a thread? 10 messages
hoary owl i want to know if a /command was done in a thread and be able to get the messages inside the thread. is there somethin...