Error Trying to Run on Server
Before when I was in VS code running it. It worked perfectly fine but when I move it to a server I get this error.
```js
file:///home/container/source/index.js:1
import { Client, GatewayIntentBits, Collection } from 'discord.js'
^^^^^^^^^^^^^^^^^...
message.createMessageComponentCollector
Collector is not collecting interactions from the message.
```js
//Replying to the interaction.
const message = await interaction.reply({ components: [packagePanel.toJSON()], flags: [MessageFlags.IsComponentsV2, MessageFlags.Ephemeral, MessageFlags.withResponse] })
...
Framework
What is the best framework that support commands and events and support latesz version of d.js?
Building components
How do people usually use the component builders?
Right now I'm using the builders inside of the "add component methods" but this results in components 100s of lines long depending on the arrangement of different component types.
I was wondering if there was a better or more standard way to build components....
Question about the type of channel option type for the slash command
I have a question about
ApplicationCommandOptionChannelTypesMixin.addChannelTypes() and APIApplicationCommandChannelOption.channel_types.
In APIApplicationCommandChannelOption.channel_types, ChannelType.GuildDirectory is allowed, but not in the builder addChannelTypes().
Which is the correct behavior? ...Component v2 help
Can anyone help me to put drop menu inside the embed using components v2 and also canvas image inside the embed I asked chat gpt but he can't here is the code pls help me
possible to instruct some events not to cache?
I was wondering if it's possible to receive message events without having the
messageCreate event automatically cache messages. The only one of these events that I'd actually want is messageDelete to observe if a specific message sent by a bot was deleted. The audit log event fires if another user deleted the message, but audit logs don't include message IDs, only channel IDs and the user who deleted it. I don't want to turn off the message cache entirely, because I do have some message comm...guildMemberRemove Event
hi, how is the specific event to detect when a member of a guild leave the guild? Because I have tested with
Events.GuildMemberRemove but it's not working (looks at the picture, helllllllo doesn't appears in the console...) thank u if you have replied this postHTTP-only interactions bot
i'm asking if there documents about http-only bot i heared i have to use a domain and i got one
what packages i need? how?...
How to properly structure commands (directories)
Hi! I just started making my first ever discord bot with discord.js. I also dont have much prior TS/JS experience (I am using TS) but do have a couple years of programming history, so im not a noob!
I am a pretty big fan of having alot of files with little content in them. Preferably, I would want to have one command per file. This works out pretty well, until I want to make a command group, which by design kind of gets ugly to pick apart. Would anyone happen to have a link to a sample repository or some other form of guidance how to set this up the proper way? Im sure theres a bunch of magic that can be done with the module exports and transpiling and whatnot.
Appreciate any help on this!...
interactions.options broke
Not sure if there is a better way to do this or not but after updating from v14.17.3 I'm now getting
error TS2339: Property 'options' does not exist on type 'CommandInteraction<CacheType>'. and can't find the correct type, this is my interface for the execute parameters that contains the interaction obj
```ts
export interface SlashExecute {
/**
* The client instance...
Having trouble with stale or inaccurate data on nickname/member updates (coming from Pycord)
Hey everyone!
I recently migrated from Pycord to Discord.js due to the new Components V2 system, and while I’ve got most things working, I’m struggling with something that was much more seamless in Python.
I’m trying to handle admin/mod logs (like nickname changes, member joins/leaves, etc.), but I’m running into issues where the data feels stale or inconsistent — for example, logging old usernames or getting outdated member data....
Get command options while doing modal
I'm making a command with multiple options and this command is showing a modal.
When I get the modal, I would like to get the command options too.
Is it possible? Where the date is stocked?...
Is there a way to cache over 1000? (Need full info)
I was looking to cache over the limit, but it either doesn’t fully cache (ex: 1000/3000) or it assumes it fully cached, but no presence information or something. Is it possible to find out all the online/dnd/idle people throughout all the servers?
Need help getting started making this bot idea I have.
im somewhat new to making bots, but i'm new to Discord.JS so i need some direction. I have this bot idea that has a few basic commands.
/set: sets the github profile(s) you want to link to your server.
/message: opens a modal, set the custom message when you commit to github with one of the connected profiles, if this isnt run it runs a very basic message with some basic info, commit message, link to github repo/commit, author, & more basic info.
/ping: if this command is ran it sets a role for the bot to ping when you commit, if you dont do this it defaults to the everyone ping....Question
One question: How do you get a slash command to appear in the bot's profile? That is, below its description.
How does one create a ButtonBuilder that does not accept Links or Premium buttons?
I am creating an interaction handler that requires buttons with custom_ids (as such Premium and Link buttons are out the door).
How can i force them to be buttons without those styles at compile-time?...