17,226 questions
0
votes
2
answers
39
views
Why does the "ready" event on, but the bot isnt working
This code isnt working, its the correct token, but it doesnt work, Why?
console.log("Beep! Beep!🤖Bot Pending!")
const Discord = require("discord.js")
const client = new Discord....
-2
votes
1
answer
53
views
discord.js: the bot isnt loading my function (login) even tho i made it very clear in the code what to do ( typeError ). how to fix this? [duplicate]
I tried so many different approaches, both in the index.js file as well as in login.js and loginAluno.js, but the login function always shows errors, and I get the following error:
TypeError: ...
1
vote
1
answer
34
views
How can I use Discord.js Client with Next.js v15 Server Actions?
I am currently just trying to create a server action in my next.js app to use a Discord Bot of my own making to get member profile pictures. I have the following server action coded in my application
'...
0
votes
0
answers
37
views
Command Return; "The application did not respond", but there was no error detected
config-suggestion.js
const { SlashCommandBuilder, ChatInputCommandInteraction, ChannelType } = require('discord.js');
const GuildConfiguration = require('../../models/GuildConfiguration');
module....
0
votes
1
answer
55
views
can you help me with my button discord js
My button doesn’t work when there’s pagination, so I added one in the Vanguard case with pagination but now it errors out:
D:Kaze\Nouzen\node_modules\discord.js\src\structures\interfaces\...
0
votes
0
answers
36
views
How can I write a discord.js slash command to query a MySQL database?
I'm quite new to discord.js and js in general. I haven't been able to figure out how to let a user execute a command to query a MySQL database.
In my index.js file, I've been able to successfully ...
0
votes
0
answers
36
views
Slash Commands Are Not Getting Registered, Discord js v14.18.0
There is no error in console. I am confused with it. with the discord js version 14.18.0 I am using this from long time but never faced this error but now I am, Slash commands are not getting ...
0
votes
0
answers
39
views
Am I wrongly handling deferral in this Discord.js slash command?
This is a Discord.js command to send embeds to a specific text channel. I'm struggling a little bit with the replies/updates deferral.
When the modal is submitted, the command raises an Interaction ...
1
vote
1
answer
39
views
Possible To Launch A Discord Activity From Embed Button Or Slash Command?
I have a Discord bot written in DiscordJS installed on some servers. I added an Activity to it (a mini-game). In all the docs I see and in testing I am able to launch my activity by clicking the ...
-1
votes
1
answer
34
views
Refreshing Discord events
Hello so I wanted to refresh my events, I thought i knew how but i guess i didn't. It enters the forEach loop although it errors out at the part where it deletes the require cache
const fs = ...
0
votes
1
answer
58
views
Discord.js 14 Slash Commands Duplicated
Not really sure why, but seems that my slash commands are registering twice. I've tried various methods, yes using ChatGPT, but so far all of the results have duplicates.
Any suggestions? (Besides ...
0
votes
1
answer
68
views
discord app (built with discord.js, Node.js) slash commands work inside server but not in DM
I'm currently building a Discord app that allows me to view a user's status (online, DND, offline) and what songs they are listening to. This works perfectly in my own server:
My app works in the ...
0
votes
1
answer
32
views
Discord permission issues when using channel.clone()
Within my discord bot, I created a /purge all command that clones the current channel by using the channel.clone() functionality of discordjs v14 (this creates an empty channel with the same name and ...
0
votes
0
answers
26
views
Failed to create Discord DM channel, Connect Timeout Error
I have updated the Discord robot token and tried different account user IDs, but the result is still the same request interface error. The HTTP of the request interface is 500, and all aspects of the ...
0
votes
1
answer
46
views
Discordjs v14, DiscordAPIError[50035]: type[BASE_TYPE_CHOICES]
I am developing a bot in Replit that makes a category structure. I am using Discordjs v14.18.0.
The problem is when creating a ChannelType.GuildAnnouncement, with value of 5, the error informs me that ...