discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

Error with modals

Hello, I just want to create 2 modal which shows one by one but I got this error: ```Error showing modal: TypeError: interaction.showModal is not a function at show_modal_two (C:\Users\tivon\OneDriveДокументи\GitHub\uMineBot\events\applications.js:153:27)...

Shard Broadcast

main.js ``` let imgchannel, vidchannel, shardId; bot.once(Events.ShardReady, async () => {...

Ticket Handling

Is anyone able to shed light on why my Close and Lock Enquiry button always sends the Claim Embed as well as always disables the Claim button when the Close and Lock Enquiry button is pressed?

i need help

so basically i wanna know how to make it so it reacts to a specific user with a specific emoji

I need help

Okay thank you so much So basically i want it so every time i type something it automatically reacts to me or a specific user with a specific emoji...

Online member fetch

hi im trying to make a command where its ".members" and it displays the online members, members in the server, and the server boosts. i got the server boosts, and server members working but cant seem to fight off this error that is persistent with the online members, does anyone know the right code on how to fix this error?
No description

Cannot find module '@discordjs/collection'

I'm currently using bun and the project has been working find until today after i have updated both bun and discord.js to their latest versions. When i look into my node_modules folder, I do see the @discordjs/collection folder there so im not sure as to why it cannot find it....

Bot Hosting for Gateway web socket connection

Hi all, I have a very simple bot that listens to messages in a channel and creates a poll whenever a message is sent. 2 things really. 1) Where is a good place to host thing that does NOT use interactions (i.e. apparently doing gateway things with CloudFlare workers is not possible). Like is hosting this bot in Lambda a possibility? 2) Are there any examples someone could send me about getting that set up. I have pretty decent devops experience but have not worked with web sockets before...

My collector isn't triggering, but is being created. There are no errors in console.

Hello everyone. I have a slash command script that allows people to host giveaways in a local boardgame club I am a part of. In my script I have two button interaction collectors. The first one to trigger is to confirm that the person has read the rules that show up on an embed. This collector works great. The second collector that triggers is for when someone inputs a date that does not follow the regex in the script to error check before sending the message. This collector gets created properly (I think) but does not see any button presses, and I am not sure why. The collector I am having issues with is created on line 28....

discordjs interactions

Hello everyone, I have a script that handles an interaction comes through my bot, is there anyway to answer this interaction through another script without calling the second script in the first one?

help me fix this error please

i want your help guyssssssssssssssssssssssss
No description

TS Inconsistency for message components

I was trying to send components using a basic send function from a sendable channel. The docs says I can send an array of ActionRowBuilder which is what I am trying to do but I get a TS error. When looking at the typings we can see that components from BaseMessageOptions doesn't have ActionRowBuilder as option. Are the types or the docs wrong? Or am I missing something?...
No description

Trying to change a channel name only works when my bot gets the admin role.

I've got some simple DiscordJS code that is trying to set the name of a specific channel. The problem is that this only succeeds when i assign the bot the Administrator role. From what I read in the manual, having the Manage Channel role should be sufficient, but that doesn't seem to be the case. I made sure that the bot has server-wide MANAGE_CHANNEL rights, I have added the MANAGE_CHANNEL permission to the bot Role itself, and added it to both the channel category as well as the channel. ...

Message Component Collector is not collecting after String Select Menu Interaction

I have this function (handleMatchConfirmation), which replies to an interaction, then use the responseInteraction to create a Message Component Collector to collect the users' button interactions to change the message depending on their inputs (in this case, confirm or cancel a match, for example). It works as intended when the interaction passed is a ChatInputCommandInteraction (as in the first message of the picture), but when I try to execute the same function after the user selects an option in a StringSelectMenu (so passing a StringSelectMenuInteraction) even though it succesfully replies the message and creates the Message Component Collector, it fails to collect any button input (as in the second message in the picture), not even passing by the Message Filter. I will upload the function, as well as the logs produced by the executing using the ChatInputCommandInteraction and the StringSelectMenuInteraction, for comparison....
No description

AttachmentBuilder

Hi, could someone tell me what the attachmentbuilder is for please? I didn't understand it very well in the doc.

Slash commands not being created

Sorry I know this has been posted multiple times before and it must be getting old by now, but I read many posts and none of the answers I found worked for me. I am using the latest version of D.JS and Node. I have followed the tutorial to create a bot, but the slash commands simply don't show up at all. I tried restarting my Discord client several times, restarting the bot, removing the app, adding it back, etc. it just won't do anything. I am not sure what am I missing. When I run the deploy-commands.js file it says it worked successfully. I am, however, using a .env file, whereas the tutorial uses a .json file. But still I don't see how this changes anything. Let me know if you want any specific code or anything. Thanks for reading! Sorry again for the inconvenience....

Slash Options

Hello! How can I make it so that it displays the list of threads on the server here instead of just regular options?

Not in stage channel error when running setSupress(false) despite checking for stage channel?

So how am I supposed to resolve an error like this? Because from what I can tell, all the checks are correct 😂 Also, if it's not clear from the image, the erroring line is 383...
No description

Logs

Does anyone have an idea why the ban remove will log but none of the other guild events will?