djs-questions

9202 threads · Page 90 of 185

issue with help command 89 messages
honest rapids https://sourceb.in/Klz09ynf0B i describe tags in the command but the bot does not pick them up and use them
how do a use the @discordjs/proxy? 58 messages
little turret as said ,I need http proxy best practice and websocket gateway proxy best practice . thank you .
998292157150535700
Channel Create 3 messages
sand cypress Is it possible to code button so it creates a new channel?
Error Sending Modals 18 messages
coral jetty Error: Cannot properly serialize component type: undefined?
creating custom events 4 messages
turbid oxide Hello how can I create custom events and call them from another file ?
i seem to be having an error. 5 messages
honest rapids https://pastebin.com/DdHSPAEb there is no error in the console but the bot responds with that there was multiple errors...
connect ETIMEDOUT using @discordjs/proxy-container 3 messages
little turret Error: connect ETIMEDOUT 208.77.47.172:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) { err...
Discord.JS is caching prevents me from getting most up to date `member.voice` info. 5 messages
tender flower Discord.JS caching system is preventing me from getting the most up to date member information. I would like to get the...
How to run docs website locally? 5 messages
indigo crow How can I run/preview the discord.js docs website locally? `CONTRIBUTING.md` talks mostly about how to build/test the ...
Is this the correct way to fetch the member? 7 messages
tender flower I'm listening to the `messageCreate` event and am fetching the member. Is this the correct way / most optimal way to fet...
How to properly get channel ID? 33 messages
glass copper Hello, all I really want to do is to get the channel ID, but I'm struggling to do so as it prints out as undefined. mo...
Proxying the API 5 messages
paper terrace Hayo, I would like to proxy the Discord API so that I can analyze what endpoints I call the most, as well as other data...
1150878580193116250
why the command not verify 8 messages
swift finch Hello in this image i put options but in the project of bot when i put another options it isnt recorded why ??? is the...
How do i get member count of a specific guild 4 messages
fading oriole ```js const { Events } = require('discord.js'); module.exports = { name: Events.ClientReady, once: true, as...
Need help handling event 6 messages
turbid oxide I added a VoiceStateUpdate to my events but its never called
How can I create something within this apps, I want my bot to have an option to read embeds 2 messages
TypeError: Cannot read properties of undefined (reading '0') 3 messages
hollow cargo The code: https://sourceb.in/CcJiGASyoU The error: https://sourceb.in/z0DhHGspBn So basically I can't get my command t...
`avatar_decoration_data` is not returned by "client.users.fetch". 4 messages
tender flower When I do: ```js client.users .fetch("564386579037159446") .then((user) => console.log((user as any).avatar_decorati...
Issue: client.cooldowns - discord.js ^14.9.0 - typescript 2 messages
visual locust Hello, I have a little problem, Is there a solution to the problem regarding the cooldown feature for commands withou...
1150878580193116250 998292157150535700
Is there an api to access connections? 7 messages
shy totem My profile has an xbox connection, and I want the bot to get my username
1150878580193116250 998292157150535700
Implementing Websocket Resume 3 messages
tender maple Hello, I would like to implement Websocket Resume feature as described here: https://discord.com/developers/docs/topics...
How to correctly make a VoiceState event using eventHandler 53 messages
lunar valve I created the voiceXP.js event, which was supposed to grant experience every minute while in the Voice Chat. However, fo...
1150878580193116250
Unable to show modal from button interaction. (discord V14.8.0) 15 messages
tiny inlet Hello, I've been struggling to get the modal from my button to work. I have done everything right as far as I can tell a...
998292157150535700
channelUpdate compare permissions 21 messages
jovial helm Hey there, I tried using the channelUpdate event to get the difference between the old permissions and the new channel p...
Ban reasons are no longer showing up in audit logs 86 messages
tired field I’m using djs v14. Previously, ban reasons would show up in the server’s audit logs as expected. However, this functiona...
1150878580193116250
Can‘t find message by id 8 messages
supple pumice I can‘t fetch a message by his id. The error: const clockInMessage = await user.messages.fetch(worker.clockInMessage);...
Loop for bot role has 8 messages
compact walrus ```js const rol = "1048495552322609232"; const guild = message.guild; const mem = []; const role = guild.roles.cache.get...
MessageComponentCollector gives wrong button customId 30 messages
azure ledge **Code:** https://pastebin.com/Vk2fFSvi Hi! So, I'm creating a tic-tac-toe command, and for the most part, it's done. H...
1150878580193116250
Accessing values of an authorization request. 3 messages
pliant swift Hello - I've just made an OAuth request from discord and stored it in a requests object as follows: ```js export async f...
DM User based on the Username 13 messages
brisk trellis Hi! I'm trying to use the discord rest API (https://discord.com/developers/docs/resources/user#get-user), but I can't se...
998292157150535700
hi my command no function help me pls 44 messages
harsh hill d
Zlib-sync failed to resolve 6 messages
brisk trellis Hi! So I'm trying to integrate discordjs into my Svelte application because I want the bot to send DMs to users on a but...
Ephemeral messages 2 messages
jaunty crescent Is there a way to fetch the ephemeral messages sent to a specific user in a channel in order to delete them? Or do I nee...
Error while trying to preserve previous components when adding new component to an existing message 5 messages
hazy sparrow Greetings, I am trying to write a script which would append a select menu to existing components. Here is my code to d...
My code looks correct, but my bot is no longer detecting messages. 8 messages
dark surge Hello, (I'm French but not bilingual, so sorry in advance if my english isnt good) I created a Discord bot for my server...
1150878580193116250
Attachment Image Problem 2 messages
gloomy flame I create a embed attaching some images and in phone the photo displayed as https://cdn.discordapp.com/attachments/112285...
TypeError [ClientMissingIntents]: Valid intents must be provided for the Client 4 messages
hard whale i am trying to get this bot working on that shows fivem and am running into this problem after updating my disoord.js t...
1150878580193116250
Error - const roleId = interaction.options.getString('role_id'); 17 messages
wet willow Morning all, I've been having this error since last night and I've seen a few people with the same error on Stackoverfl...
Commands not responding 5 messages
proven drum I added trycatch blocks with console.log to see if it gives me a error but there was nothing and it logged it as usual, ...
I need help load all items definition from .json files 3 messages
chilly cloud So in my current code, it work fine loading all items, the main problem is it cant load other data from .json it only ab...
TypeError: Cannot read properties of undefined (reading 'id') 12 messages
hard whale hey i am trying to make a bot that shows fivem server population on discord but i keep running into this error on my sec...
1150878580193116250
Attachment 16 messages
mental goblet Here I want to create moderation logs, well I also want to create message logs. how do you do it when a user deletes a m...
Unknown interaction error, code 10062 after updating to djs14 3 messages
red topaz Hi! I've recently updated to Discord.js 14 and I've noticed that almost all my interactions are having the same issue so...
ReferenceError: blacklistLog is not defined 6 messages
late stump ## Code Block ```javascript const logChannel = client.channels.cache.get('1095093697047183541'); const user = message.au...
1150878580193116250 998292157150535700
Bot tags not sending a notification to users tagged. 8 messages
formal sandal Why does my discord js bot tagging people not send them a notification, is this normal behaviour?
Button does not reflect newest data when use next or previous page 3 messages
chilly cloud I got into a problem where my details button does not flect the lastest data of inventory. It easier to look at images.
The reply to this interaction has already been sent or deferred. 6 messages
chilly cloud ```ts /root/discord_bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:225 if (this.defer...
Vertical & Horizontal Scale question 7 messages
shrewd summit Hello. I just need maybe some hints for this. I know you can have Clusters(per core) and inside those there is Shards(2...
1150878580193116250
Cannot run deployment scripts 16 messages
prime turtle Hi, I'm feeling really dumb right now. I haven't touched my code in a couple months and I'm finally back at it but I'm f...
1150878580193116250
Weird slash command registering problem 7 messages
shut forum Hello, i'm having a weird issue where not logging (console.log) the result of `rest.put` does not register the slash com...
1150878580193116250