Error during download
Hey, i want download discord.js, i use nodejs LTS 18.20.4, but i have big error say by npm
```cmd
npm error code 1
npm error path C:\Users\agrip\Desktop\dossier-Visual-Studio\Discord\Bot Discord\Zamours...
How do I grab the voice channel the bot is currently connected to?
Heres is the breakdown:
CONTEXT:
I am trying to make a simple if statement, that compares the guild ID of the voice channel from the user, to the guild ID of the bot's current channel.
...
Bulk role add/remove
Hi everyone,
I want to implement a discord bot command that can be used to add/remove specific role to/from a large group of users (or in some cases all users). Is there a way to do this without getting rate limited. I have seen some other bots that implemented such features, for example I heard a carl bot can do it. Any ideas would be appreciated :)...
Hi! I have an error.
This is the error:
```
node:events:498
throw er; // Unhandled 'error' event
^...
DiscordAPIError[40060]: Interaction has already been acknowledged.
I've been trying to solve this problem for quite some time. I am making a ticket system and it is very annoying that this error appears. There are times it comes out and times it doesn't. I don't know what to do.
The code is: https://sourceb.in/45e02bpMvL
Console error:...
guildCreate not firing
const wlSchema = require('../../Schemas/serverwlSchema.js');
module.exports = {
name: "guildCreate",
...
Recreating welcome message wave button?
Any way to re-create the "Wave to say hi!" button that the server sends when a new member joins the server? One that would make the member respond with a random or chosen sticker
Some error that I do not understand
I have a code and it has a few problems. Even if it is not the console saying it, but you see something bad in it, tell me.
The console error is:
Unexpected error: TypeError: (intermediate value).setTitle(...).setDescription(...).addField is not a function
at askQuestion (D:\atermibot\index.js:130:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)...
Validation Error in Mongoose/djs
Hello! I am trying to write a command called
/moderator
with a sub-command /moderator add
which adds a user's ID to a moderator database (MongoDB/Mongoose) which is then checked anytime someone wants to run a moderator command.
Here is my related code (djs v14.16.2):
moderator.js
...Don't understand where to write this code.
Please explain where need to write this code. I have re-read the documentation on this code more than a dozen times and still did not understand. When I try to write this code in files that are responsible for events, I get an error:
```
node:events:497
throw er; // Unhandled 'error' event
^...
No idea how to solve this.
So I have a bot. This bot does a few other features that works, but the one that I have a problem with is where the !startquiz and the answers. First of all I want it to immediatly say that you can only choose A,B,C,D. And I want it that if the quiz hasnt been completed in 7 minutes then it should say the time up. And when I complete it it just says that choose A,B,C,D.
If you dont understand here is what I mean. Here is the:
Where the user said other than A,B,C,D: await message.author.send("Helytelen válasz. Kérlek, válassz A, B, C vagy D közül.");
And where the time ran out: await message.author.send("Időtúllépés történt. Kérlek, indítsd újra a kérdőívet a !startquiz paranccsal."); ...
apps added to servers
how can i get the guilds that have added my app? i’m specifically asking this since guilds.cache doesnt contain that information.
Shard info
Hi I want to make a command that shows how many servers each shard has and ping etc. But something is not working. Here are some example results: Shard information
Shard ID: undefined
Number of servers: 120
Ping: 113 ms
Running time: 16 seconds...
I dont know if i used it wrong or made an error in it
So I have an index.js file that has lots of features, but the one that i have error in, is that someone dm's the bot !startquiz and it starts a quiz for them. When I dm the bot it says nothing. I don't know if I did something wrong, but help me. These are the guilds I use: GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildMessageTyping ...
What is the max this can output?
Since main help channel is closed, I'm creating a post
This is the code:
guild.channels.cache.filter(channel => channel.isThread() && !channel.archived).size
What's the highest number this can output?...