All Questions
5,461
questions
0
votes
0
answers
25
views
Discord Js V14 Setting permissions on channel not working as expected
when creating a channel with the bot i wanted originally to set the permissions for everyone to not see the channel but for a specific role to see it and for the person that used the command to see ...
-1
votes
2
answers
36
views
Error : Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'FLAGS') Discord bot Discord.js V14
i just wanted that the bot if i interact with the button it will create a channel on the "ticket" category if there is no ticket category i verify if there is any category with the id that i ...
0
votes
0
answers
21
views
Discord error "Interaction has already been acknowledged"
I'm trying to make a discord bot which will track your hack club arcade sessions, but I am coming across the issue
Error [InteractionAlreadyReplied]: The reply to this interaction has already been ...
0
votes
0
answers
31
views
exported variables always return undefined in discord.JS V14
in events/messageCache.ts:
import { Events, Message } from 'discord.js';
export interface MessageCacheEntery {
authorID: string;
deleted: boolean;
message: string;
timestamp: number;
}...
-1
votes
0
answers
46
views
Discord js v14 TypeError: Cannot read properties of undefined (reading 'reduce')
My discord bot was working fine before, but it kept giving this error and telling me on discord that the application did not respond whenever I try to use an application command.
When I changed rest....
0
votes
1
answer
73
views
How to store a Global variable between restarts with MongoDB
I have a $count command which increases a variable "count" by 1. Every time I reset my bot, the count goes back to 0, because I set it with let count = 0. My issue is that I don't want the ...
-1
votes
1
answer
37
views
Discord.js | Bot's role reactions post does not continue to work between sessions [closed]
I'm trying to set up a /roles command for my Discord bot. The goal is to have the bot post an embed with some automated self-reactions that correspond to self-assignable roles identified in the embed. ...
-1
votes
0
answers
66
views
I can't create server with discord-selfbot-v13
When i call function client.guilds.create i have this error:
C:\Users\ds\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415
throw new DiscordAPIError(data, res.status, request);
...
0
votes
0
answers
58
views
Discord bot is not playing given URL
I am working on a Discord music bot powered by discord-player v6.6.10 and discord.js v14.15.3.
Currently, when the user executes the /play command, the bot properly searches for the given URL, grabs ...
3
votes
1
answer
38
views
Discord.js: Removing roles doesn't work when splitting code into two modules
I am making a discord app that removes a role and adds another, it was working fine when everything was in one module, but when I tried to make two more modules one for adding the role and one for ...
0
votes
1
answer
30
views
Discord Bot (discord.js ^14) does not see direct messages
I have invited the bot to my server and it does see all messages typed over there. However, when I send it a DM, it does not react at all, even the event 'messageCreate' is not invoked.
const client = ...
0
votes
1
answer
64
views
How can I make this slash command a message (prefix) command?
I'm hosting a Discord bot for a small private server of mine with the purpose of pulling a random image from Google Images search results. I've been using this repository as the basis, and after ...
0
votes
1
answer
92
views
Cannot Register Slash Commands while Building my Discord Bot
I have trying my hands out in building my own Discord Bot. I have tuned it to reply on any message from the user. I have built it entirely by reading the documentation on discord.js. The reply thing ...
0
votes
1
answer
33
views
Can't import cubing.js in node discord bot
I was trying to import the cubing.js module in nodejs so I can use in in my discord.js bot. However when I use the following import const {randomScrambleForEvent } = require('cubing/scramble') I run ...
-1
votes
1
answer
28
views
commands undefinde (name_localization: )
I try to make a discord bot with javascript. My problem is that the commands in discord don`t function. Can someone help me to fix this issue?
This is my error:
/applications/1235114104566579231/...