djs-questions

9202 threads · Page 53 of 185

Log all events into server channel 8 messages
ashen raft Hey! I'm trying to write a simple script that will log events into a server channel. Seems simple...but it's just not wo...
Relative timestamp in embed footer 6 messages
crisp bone I want to put a relative timestamp in an embed footer. setTimestamp() doesn't accept strings, so I cannot pass the relat...
@discordjs/brokers timeout when not using reply() 92 messages
molten peak I'm using the `@discordjs/brokers` package. Specifically the Redis streams broker. In emitted events you get these `ack`...
1150878580193116250 998292157150535700
deferReply issue 41 messages
mortal venture ```const utils = require("../utils/utils"); const embed = require("../utils/embed"); const loaders = require("../utils/l...
OAuth2 URL + Bot Permissions + Discord Intents 12 messages
safe sorrel I don't fully understand the relationship between OAuth2 URL creation, bot permissions url creation and the intents requ...
1150878580193116250
Properties of undefined „send" 7 messages
jolly ravine Hello, following code ``` const { Events, EmbedBuilder } = require('discord.js'); const path = require('node:path'); ...
idk what s this error 2 messages
fluid cloak v 16 music bot
How to check if a user is in a specific guild 16 messages
thick sierra Hey there, I'm trying to make a command, that invites a person to a football club. Because, I don't want anyone to join...
1150878580193116250
reading guilds TypeError 17 messages
jolly ravine Hey, ``` const { Events } = require('discord.js'); module.exports = { name: Events.ChannelUpdate, once: false,...
Resuming with cached data using @discordjs/ws 4 messages
molten peak Could anyone guide me in the right direction for doing my own resumes with `@discordjs/ws`? I would like to get my shard...
1150878580193116250 998292157150535700
Select menus 27 messages
supple urchin how do i make my menu look like this:
message.edit erroring with "Unknown Interaction", but message is found. 3 messages
honest quarry The first attachment is what shows if I print the message with ```await foundChannel.messages.fetch(body.messageId);``` ...
1150878580193116250
Ping problems 8 messages
dense goblet Can the overload of interactions on buttons have consequences on the latency of the bot to such an extent that the bot n...
998292157150535700
Detecting Application Commands Intended for Other Bots! 7 messages
cunning stirrup I'm currently working on a Discord.js bot where I need to detect when users trigger application commands intended for ot...
Minesweeper code error 16 messages
steel coral am having weird error when i use the command and then lose and re use the command again the same command pop out like th...
1150878580193116250
Big Problem 5 messages
civic pendant Hello, I have a problem, when I try to assign a role to a user, my bot receives a message that it does not have permissi...
Getting user from interaction options 3 messages
molten atlas What do I have to do to chage the return type to either 6 or 9 aka a user? ```js .addStringOption(option => ...
Add a role problem 1 messages
plush lantern So my bot ran perfectly but when i use the slash commands add role, its success but no role give
Problem to add a role to a person in a different guild 2 messages
thick sierra Hey, I got a problem. I want to give a role to a person on a different guild. I tried couple of times, but no effect. He...
1150878580193116250
newState.speaking vs oldState.speaking doesn't seem to be working :( 8 messages
safe sorrel I want to establish a timestamp both when user starts speaking and also stops speaking. My startTimer function starts l...
1150878580193116250
CollectorFilter being skipped? (or some other problem with awaitMessageComponent) 18 messages
cerulean ledge (It's been a while since I have talked on this server) Hi. So, I'm having a problem with responding to a user interacti...
Button Collector 16 messages
thick sierra Hi, I'm making a system that adds people to a club, I got everything, but because I'm new I don't know how to make a but...
1150878580193116250
Dm discord.js 14.14.1 15 messages
somber swan how to make it so that when I write to the bot via dm, it will write it in the console or on some channel
1150878580193116250
Bot Randomly Shutdown without Logs 11 messages
rugged ginkgo Hello, My Bot randomly and without any logs or notice...went offline. I have no code that forces it to go offline, aro...
Cannot read properties of undefined (reading 'cache') 33 messages
thick sierra Hey, I got another problem. Cannot read properties of undefined (reading 'cache'). I want it to find a role in a differe...
1150878580193116250
Objects not getting pushed to collection. 3 messages
cedar pewter ```js const removed_roles = []; if (added_roles && added_roles.length && previous_rankbind[0] > account_group_ra...
Not Found - GET npm install 16 messages
lost forum I get this error: npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/intigritycheck - Not found...
problem with permission override 8 messages
urban hill problem lies in line 42
Confirmation and error messages problem: 4 messages
hushed sequoia Hi everybody I'm currently trying to make a slash command with 4 subcommands: The first creates a new role and adds use...
Can not read dms 2 messages
violet steeple I for somereason can not fetch dms sent to my discord bot using 'messageCreate', I have Direct messages and message con...
where would one find the d.js "send a message in a channel" chain in the v14 docs 10 messages
gritty matrix sorry if i got the terminology wrong im not super used to JS but where could i find the chain for sending a message in a...
ERREUR 14 messages
boreal crypt ```[ERROR] DiscordAPIError[50035]: Invalid Form Body embeds[0][LIST_ITEM_VALUE_REQUIRED]: List item values of ModelType ...
Is there a way to loop through each guild and channel without getting error using fetch? 74 messages
honest quarry Basically, right now I am using try/catch without logging the error(s), because it works. But, if I do not use try/catch...
Bot cannot play music 16 messages
thorn urchin I recently started a bot that play music, everything works just fine, no error, the bot is able to find the song and joi...
This interaction failed but components are working 13 messages
spiral cairn I'm trying to create an interactive settings command by using interactable dropdown menus and buttons. Everything works ...
interaction.channel is null in DM 3 messages
lethal sedge it works for servers, but not in direct message as 'user app'. I already use as suggestions of others similar questions...
Discord cdn not working? 7 messages
light elk I'm storing a link of an image attachment `...cdn.discordapp.com/attachments...` and the content is marked as no longe r...
1113356221962010634
this isn’t really an error but more of a question 6 messages
warm osprey How would you exactly use the presence to detect if a specific role has online members? as i am trying to make a comman...
duplicate responses 52 messages
Slash command Duplicate error!! 4 messages
wintry lodge i keep getting this error trying to refresh my slash cmds using the command deploy from discordjs.guide code: ```js con...
crash even if I have a trycatch 6 messages
fierce lava The bot crashes even if I put a trycatch(error).
Trouble with collector and interactions 8 messages
clever kernel Here's the part of my code that's causing errors: ```javascript async function handleListReactions(interaction) { //lin...
1150878580193116250
What are the exact differences between a Webhook and a Webhook client? 4 messages
round citrus I've read the page on the [discordjs.guide](https://discordjs.guide/popular-topics/webhooks.html#what-is-a-webhook) but ...
Checking if a user is mobiile 37 messages
lapis marten ```JS client.on('messageCreate', async (message) => { // Check if the user is online and has presence data if (m...
Sharding Questions 11 messages
shell anchor Hello, As my bot is nearly reaching the 2k servers. I need to prepare it to sharding but I have some questions to that...
1150878580193116250
Repeating interaction 26 messages
barren pebble Is there a way to use the 'interaction.update' multiple times? So i can make like one button after another <:peepoThink:...
What Discord.js features have the potential to hit the limit/go over the set Discord API limits? 13 messages
honest quarry Where can I even find Discord's API limits? I just want to make sure that what I am doing with my bot won't eventually b...
1150878580193116250
Error when i do npm install discord.js 2 messages
bold fern i don’t know how to fix this at all and i’m beyond confused i’ve tried so many times i am useing Visual Code Studio
Simple question, how can I check if an incoming message is *specifically* a slash command? 5 messages
honest quarry How can I check to see if an incoming message (messageCreate) is a slash command? Sometimes a typo can happen and a slas...
Deleting Ephemeral Messages 9 messages
vital canopy Is there any sort of way to reply to an interaction privately and then delete the reply?