djs-questions

9202 threads · Page 107 of 185

Building .exe file with pkg results in "Failed to make bytecode" 4 messages
dense sand Hey, I'm trying to build my node discord.js project into .exe file for ease of use. I managed to do so with https://www....
Made a command for user information, gives an error 22 messages
marsh sable Made a command for user information, gives an error ``` Error [GuildMembersTimeout]: Members didn't arrive in time. ...
Getting data from Oauth2 7 messages
silver tiger Im currently trying to get data from an Oauth2 onto a seperate website, but everything I find says to host a new website...
trying to create a message counting bot 5 messages
compact girder just as a starting creation im trying to make a bot that can count how many messages a person has sent in a certain amou...
@discordjs/rest requests behave differently when deployed to a serverless node environment vs. local 8 messages
granite depot Using `@discordjs/rest` to create a standalone node project in an express-like API, `await api.interactions.defer()` han...
998292157150535700
Edit message according to selected value 35 messages
hidden grove Hello, I've created an embed and a selectMenu just below it and I'd like to modify the embed (and therefore the message)...
Buttons 3 messages
marsh sable I made a team for voting, it works. I made the code to make the buttons work - they don't work Command ```js const { Sl...
Attaching local image file to embed 34 messages
steel rover ```js const imageFile = new AttachmentBuilder(`../../assets/war_ranks/${warRank}.png`, { name: `${warRank}.png` }); ...
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'name') 5 messages
pastel oasis Hello, why is this happening? i don't understand.
DMs with shards 3 messages
muted ice On which shard would interactions from dm channels be received?
v14 reactions adding 7 messages
tiny apex how to add reactions to you're command like /hi he says hi, how are you with a reaction like a thumb i am beginner at th...
having a few issues with this command? 4 messages
karmic eagle ```javascript const { bold, SlashCommandBuilder, EmbedBuilder } = require('discord.js'); const dayjs = require('dayjs');...
Property 'getMember' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, ... 17 messages
bronze haven Property 'getMember' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocuse...
Accessing Specific Guild from Bot's Cache is not working 17 messages
granite ginkgo I hope this message finds you well. I am currently facing an issue with my Discord bot, and I'm seeking some guidance fr...
Help 7 messages
marsh sable I wanted to make an eventHendler using a table. I did everything according to the guide on YouTube, but it doesn't work,...
998292157150535700
how do know how many channels my bot connected ? 3 messages
severe rivet I used this code before but now I don't know ```js client.voice.connection.size```
GuildMemberRemove and roles 6 messages
cold sand Hi, may someone tell me if the Member from GuildMemberRemove event has the role property with roles before they leave th...
Discord Bot ID Locker problem 1 messages
bold halo I have a problem with my discord bot that locked my other discord bots id so that you can sell them, i received a small ...
How can I get all users with a role ID, then scrape their nicknames on the server 27 messages
lost lotus Title^
Modal Help 23 messages
oak moth I have created a Context Menu Builder using Reciple (TS) with the file name `1️⃣ AddIt.ts`, I also have modals handler `...
Autocomplete Command not sending update 4 messages
arctic siren Not too sure how to explain it exactly however, I have a command with multiple Autocomplete options, therefore I have a...
trying to set up a bot but it doesnt work 30 messages
compact girder i was setting up a bot and after attempting to bring the bot online it failed
998292157150535700
create-discord-bot issues 29 messages
north cape Im trying to run `npx create-discord-bot . --typescript` and for some reason, rather than creating the files, it just op...
998292157150535700
Numbers in front of text. 4 messages
tranquil lava I sent the message: ```testing``` in my server and i console logged it using ``` console.log(`${message.content.sl...
Emojis on SelectMenu 15 messages
hidden grove Hello, I'm trying to put an emoji in my select menu (.setEmoji) but it doesn't work. Can someone please help me? Here ...
Typings build errors node_modules/discord.js/typings/index.d.ts 5 messages
kindred pagoda `node -v` `v20.3.1` `"discord.js": "^14.12.1"` `"typescript": "^4.9.5"` `skipLibCheck:true` `strict:true` Unable to fig...
Change TS type of Client 9 messages
rich valve I've made some changes to the default Client by adding a config file and some collections. While this all works I can't ...
dungeon game 2 messages
solar valve I have a game project for school and the questions are asking to move the monsters in my code, I'm not able to move them...
threads, forums. parent ID 3 messages
light orchid I might have glossed over where this is. Trying to make a event listener that can see the channel ID of the parent threa...
ComponentType.SelectMenu not working after discord.js@14.12.1 7 messages
sleek shuttle It was working just fine before
REST dont make Slash Commands 16 messages
supple pumice My guild Slash Commands dont register any more A few days ago, all was still working. But I added a context menu handle...
998292157150535700
Is there a way to use a context menu builder and then get the message's author? 25 messages
oak moth I want to right click > Apps > *Click on my Context Menu App* > `console.log` the author of the message (which I use the...
suggest me 1 messages
alpine escarp how to get attachment from the specific bot id
What's the best way of storing an interaction in a Redis instance for a later reply? 6 messages
south root Hi there, I have a command that takes awhile to process, so I'm using a queue to do each one, one at a time. I'm runnin...
Display Attachment in Embed 9 messages
noble remnant The attachment option returns: https://media.discordapp.net/attachments/889518013429194782/1136474759866109952/image.png...
998292157150535700
Is there a way to ping/show an ephmeral message to numerous people after like a set time 19 messages
lost lotus Title ^
Copying a slash command execution 6 messages
mint dagger Good evening, I was wondering if there's any way to copy paste a slash command execution, since my users will have to d...
If user has higher role than bot 9 messages
tidal yoke Currently i have this code: ```js let targetMember = message.mentions.members?.first()``` how can i check if...
Unknown Interaction for buttons 9 messages
cunning oasis Hey, im trying to create a message wich has buttons but it doesnt work. Sometimes it works and sometimes not. I get the ...
Rate Limit 20 messages
astral shell is it possible to retrieve the header returned when the bot is being rate limited by discord when sending messages? acco...
998292157150535700
Bot won't connect to client or deploy commands with no errors 11 messages
sinful linden My bot randomly stopped connecting to the client and it also won't deploy commands. It just says the started refreshing ...
don't know how to go about getting rid of this 27 messages
karmic eagle i'm not sure what to put in my `memberActivity?.name` field to make it show whatever the user is playing other than "cus...
Threads 4 messages
scarlet pine hi, when creating a thread with a bot, we can define a duration before the thread is archived. does the bot need the Man...
event for all shards being ready? 1 messages
solid moth so there's an event for when each shard is ready, but is there an event that is called ONLY when ALL shards have loaded?...
editing webhook message sent in thread 1 messages
patent thunder Hi, im sending a webhook message in a thread, then saving the id and after that editing the message with the same webhoo...
Regarding the buffer.File 3 messages
jovial burrow Should I use an alternative? (idk if there is one) Will this get removed in the future? Or is it safe to use this?
[TS] message member is possibly null 13 messages
rain skiff making something that uses `message.member` to check permissions of a user npm v.9.6.7 node v.18.3.0 discord.js v14.11....
How to get Interaction choice name? (djs v14.7.1) 3 messages
fringe thorn Hi, I have an interaction with some choices. Every choice has a name and a value and I need both of them. I know how to ...
Issue with the implementation of a custom TextInput class 2 messages
eager glen Hello, I'm trying to implement the following class in order to create a TextInputBuilder without having to use setPlaceh...
Problem with AuditLogs (MessageDelete) 15 messages
vital scarab I have some problem. If some other person deletes my message, and then I delete my messages, it will write that he delet...