My application does not start
I was tweaking some parts of the application, when I run the command a few times and I get "The interaction failed" yet the command logs were still displayed in the terminal. So I decided to restart the application, now it just doesn't want to start! The problem is not on the host, as I have several applications there and they are all working successfully.
error
I have done codes of basic slash commands, but when i try to run node deploy-commands.js, this error appears:
Error: ENOTDIR: not a directory, scandir 'C:\Users\fanmo\OneDrive\Plocha\taubine\commands\ping.js'
at Object.readdirSync (node:fs:1527:3)
at Object.<anonymous> (C:\Users\fanmo\OneDrive\Plocha\taubine\deploy-commands.js:14:26) ...
Interaction Failed, buttons are not working
https://srcb.in/1UpGBbIlfM
buttons are not working, interaction failed. But select menu works...
Creating a attachment with a link
Hello!
Currently i have a link that is cdn.discordapp.com in a webp format, how can i use attachment builder to upload it as a file?
link = ...
what is this
Guys does anyone know how Midjourney achieves that editing window, within discord???
Like this (attached image)
What exactly are they doing to create a separate window that pops up like that?...

Does GuildMemberUpdate get triggered when a user completes the onboarding ?
I see that the guildMember#flags field can also contain the flags
STARTED_ONBOARDING and COMPLETED_ONBOARDING. Does it mean that the GuildMemberUpdate event is sent once the user has completed an onboarding?Any reason this doesnt work?
I used the code from one of my old bots that used to work. There are no errors, the bot just doesn't respond to the command.

Can't figure this out
C:\Users\shark\OneDrive\Desktop\discordbotv2\Handlers\eventHandlers.js:28
table.addRow(file, "loaded");
^
ReferenceError: file is not defined...

npm init
i have node.js installed, i ran node -v in command prompt, version is 18.17.1, then i tried to run npm init in terminal but this occured:
The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was include
d, verify that the path is correct and try again.
At line:1 char:1...
I've created a server.js command designed to provide information about the server. However, I'm faci
I've created a server.js command designed to provide information about the server. However, I'm facing an issue where, unfortunately, the bot doesn't respond when this command is invoked. Can someone please help
Default RoleSelectMenu options
I am trying to set default options (ones that are already selected when the user sees the select menu), but this doesn't seem to be possible. My question is if this is possible or if I am just blind.
Look at the first image for my preferred use case, where I want users to be able to change the set roles. (I want the roles that are set right now to pop up as selected upon load)
I couldn't find anything in the docs either: https://discord.js.org/docs/packages/builders/1.6.5/RoleSelectMenuBuilder:Class...

Channel is not found ?
hello i have a probleme a little probleme
i want to send a message in a channel when someone rank up
but the channel is not found im sure 100% i put the right ID
so why he cant find the channel ?...
Accessing handle functions globally.
I've been working on creating a Discord boilerplate for myself. One of my goals was to develop a handler function capable of producing a captcha SVG file. This function would not only return the file's location but also the content of the captcha. This could be used for verification and other similar tasks.
However, I've discovered a limitation: the handler function can only be used within the index.js file. It seems that this restriction is due to how I've set up the handler registration process in the index.js file. You can find the progress of my boilerplate in this GitHub repository: Github Repo
Here's the code snippet where I register the handlers:...
premium services
What's the best way to do premium services in my discord bot? Ive never done that before and wanted to know the best way possible, please ping me on all reply messages or i wont see this
timeout perms
im trying to make a timeout command but idk what perms are required
if (!message.member.permissions.has('TIMEOUT_MEMBERS'))
doesn't exist, as i made a role with the permission to timeout members, then i used roleinfo and it says the role has no perms like if it didn't exist...
slash command reply taking a minute or two to send message despite logging fine
(the code was too big for the message it's after this one)
context: I'm working on a mod of the api and for some reason when I run the command it won't reply or send messages but it'll log just fine then it'll wait for a few minutes and only then will it try to send a message. the only time I get an error is if I use reply but since it took so long it can't even get the reply so it says unknown interaction. I've asked a few of my other developer friends if they know why it's happening and none of the ideas they've given me have worked nor do they have any idea why it's happening....
Timeout Error
Hello!
After this message you can see my current Code. I have a problem, that firstly, i get the error right here:
...
if (timeMember.permissions.has(PermissionsBitField.Flags.Administrator)) return await interaction.reply({ content: `Du kannst keinen User mit Administrator Rechten timeouten!`, ephermeral: true })
TypeError: Cannot read properties of undefined (reading 'has')
if (timeMember.permissions.has(PermissionsBitField.Flags.Administrator)) return await interaction.reply({ content: `Du kannst keinen User mit Administrator Rechten timeouten!`, ephermeral: true })
TypeError: Cannot read properties of undefined (reading 'has')
DiscordAPIError[50035]: Invalid Form Body
Code - https://srcb.in/BPUgexv8SV
```DiscordAPIError[50035]: Invalid Form Body
data.components[0].components[2].custom_id[COMPONENT_CUSTOM_ID_DUPLICATED]: Component custom id cannot be duplicated...
