All Questions
Tagged with node.js discord.js
8,256
questions
-1
votes
0
answers
31
views
Trying to match what a user inputs into a command, to a google sheet
So i am trying to get this where when a user inputs a command "steamid" it will go through the google sheet "data" and search for the "steamid". If the steamid is found ...
0
votes
0
answers
50
views
Discord API responding with "Request failed with status code 401"
I am developing a discord servers list, the site itself is complete, but I am having major issues ever since switching to slash commands (requirement for verification, unless approved for Message ...
0
votes
0
answers
26
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 ...
0
votes
2
answers
37
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
22
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
32
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;
}...
0
votes
0
answers
22
views
"Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred" I keep getting this error on discord.js v14
I am trying to make a bank command with subcommands "balance, withdraw, deposit and transfer coins", but every time I try to run the command I get the error "The reply to this ...
-1
votes
0
answers
47
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
28
views
Discord.JS TypeError: Cannot read properties of undefined (reading 'reduce')
Receiving the following error when using any interaction in Discord.js
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'reduce')
at BaseInteraction (node_modules\discord....
0
votes
1
answer
44
views
Discord.JS Invalid Form Body when creating a select menu
I'm new to menu selectors and I'm not really sure why I'm having problems getting started with it.
I've tried to make a test menu selector to get started.
const menu = new StringSelectMenuBuilder()...
0
votes
1
answer
32
views
How can I not trigger GuildRoleCreate event by adding a bot?
const botMember = await role.guild.members.fetch(executor.id).catch(() => null);
if (botMember && botMember.user.bot) {
return;
}
So Im trying not ...
3
votes
1
answer
48
views
Node.js terminal not usable after running main file
I just started making a Discord bot using Node.js in Visual Studio Code, but I've stumbled upon an issue that I haven't been able to fix.
When I run, for example node deploy-commands.js, the terminal ...
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 ...
0
votes
0
answers
67
views
Error: Cannot find module opus.node - trying the wrong directory?
I'm trying to get an old project working again and after cloning it with no changes from what used to work I've been getting a cannot find module error.
Here is the full error:
Error: Cannot find ...
-1
votes
1
answer
40
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. ...