connection_timeout when using [Register a slash command against the Discord API] 's code
ok, so i m just getting started in doing discord, i open the discord.js, followed the instructions to npm installed the discord.js version fourteen ,and then i pressed these lovely code in my koa project ,
i have to use the require method instead of just import the { REST, Routes }
and it came out 'connection_timeout' error and nothing else about why this is happening nor what should i do to avoid this ,
this code have two necessary params : setToken needs the bot token , i gave ,Route.applicationcommands needs the bot's application.id,which is a bunch of number in string type to be exact . i think i run them in correctly .so ....what's wrong?
this is just a test bot , no privacy should be protected....

Invalid body form Error
Im making a counting command that allows you to set up the command in any channel you like. However, a 'invalid Body Form' error is occurring.
Not too sure what's wrong. There is more code than in the ss but im assuming this is where the problem is occurring from.
Error:...

channel.messages.fetch is giving messages outside the after/before range
I am encountering an issue where
```ts
const messages = await channel.messages.fetch({
limit: 100,
cache: false,...
Get a list of all mutual severs
I'd like to get a list of every server that the bot shares with a user. I've looked around here and tried things like
client.guilds.cache.filter((guild) => guild.members.cache.has(userID)) but they always end up with a collection of size 0. I'm assuming it's something to do with something not being cached, so I was wondering if there's a better way to do it.Multiple options but only one can be used
Is it possible to have multiple options but only one can selected/used, kind of like subcommands, but the subcommand takes in a string (like an option would).
channel filter
so im updating to v14.13.0 and im having problem with the serverinfo command
i had this
...
(`:speech_balloon: Channels (${server.channels.cache.size})`, `Categories: ${server.channels.cache.filter(x => x.type === "category").size} | Text: ${server.channels.cache.filter(x => x.type === "text").size} | Voice: ${server.channels.cache.filter(x => x.type === "voice").size}`, true)
(`:speech_balloon: Channels (${server.channels.cache.size})`, `Categories: ${server.channels.cache.filter(x => x.type === "category").size} | Text: ${server.channels.cache.filter(x => x.type === "text").size} | Voice: ${server.channels.cache.filter(x => x.type === "voice").size}`, true)
Button that opens a DM
Hi, I've been wondering if it's possible to create a button in DMs that-- once pressed --will create a direct message channel with another user.
The ID is displayed instead of the user.
The bot creates an Embed with a new member and in the line with a link to the user ".setDescription(
We have ${member.user})".
On the computer everything is displayed normally, but on the phone instead of a link to the user comes <@userId>....
Slash commands: choice options limit
Hi, what's the limit of choices in .setChoices please ? I need to place 57 choices but i don't know what's the limit so i don't wanna waste time coding +100 lines with an error who tells me that i can't have more than x choices
Webhook not sending
This is compiled Typescript, but im just lost on where the issue is... my console.log()s arent passing the hook.send() and there's no error being caught or anything?
```js
try {
console.log('before send')
await hook.send({...
Modal Submissions aren't working
Code:
```js
client.on("interactionCreate", async (interaction) => {
if (!interaction.isModalSubmit()) return;
...
create a SlashCommandBuilder
i tried:
```js
new Discord.SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!');...
Cannot read properties of null.
```js
const { SlashCommandBuilder, PermissionsBitField, EmbedBuilder } = require('discord.js');
const warningSchema = require('../../Schemas/warnSchema');
module.exports = {...

Issues with two collectors
Howdy, I have a parent interaction with buttons and what not. I have another interaction that responds to the buttons with a confirmation. Both use collectors but the parent interaction's collector is overriding the child's interaction and I don't want this to be happening.

How do I provide a variable for my interactionCreate event in another file?
archive "getdata.js"
```js
async run({client, interaction, options}){
const filtered = choicesUsers.filter(({name}) => name.toLowerCase() === interaction.options.getString('identificator').toLowerCase())...
Is it possible to check if a user has 2fa enabled?
I've searched around a bit but the only thing I found was
mfaenabled[discord-rpc] Prevent multiple listeners
guys I have a question
```js
app.post('/extension-call', (req, res) => {
if (req.body.playing === true) {
...
Edit embed with message ID
I want to edit an embed with the message ID.
I try this
client.channels.cache.get(channelId).edit(msgId, {components: [], embeds: [embed]}) and this client.channels.cache.get(channelId).fetch(msgId).edit({components: [], embeds: [embed]}) but nothing work.
Please Help Me...Check if a user has Nitro or not
Is there anyway to check if a member/user has Nitro or no in discord.js@13/14 ?