17,177 questions
-8
votes
0
answers
30
views
Autocomplete not triggering in Discord.js v14 — even in fresh bot and server [closed]
This post was drafted with Microsoft Copilot, so let me know if additional info is needed.
I'm building a Discord bot using Discord.js v14 and trying to implement autocomplete for a slash command. ...
-1
votes
0
answers
37
views
Something is preventing one of the buttons displaying
so I am having trouble with generating the buttons for createNumberButtons(), if I generate them through any other button click, they generate perfectly fine however whenever I try to generate through ...
0
votes
0
answers
70
views
Creation and Submission Handling for New Modal Components for Discord.js
I see that discord have released the new modal components to enable select menus in modals and the documentation for discord.js version 14.22.1 seems to indicate that they are live with the update ...
1
vote
1
answer
53
views
Discord.js "guildMemberUpdate" event only fires the second time i change a Nickname
The Issue:
I wanted to create a feature where the bot sets a certain prefix before the Nickname fitting my discord server theme if a user decides to change it. I'm allowing the users to change their ...
2
votes
1
answer
36
views
Unable to convert data of Discord Command to JSON
I'm trying to create a discord bot with a slash command. I already verified that the command does exist, by running console.log(client.stores.get('commands'));. However, when I tried converting the ...
1
vote
0
answers
87
views
How to Get the Option Names in Discord.js
Inside the Register Command File
I want to assign credits to each action using the value parameter and ensure that users don't select the same action multiple times. However, since value is not a ...
-1
votes
1
answer
82
views
How can I make a bot command to perform an action with another user? [closed]
I want to perform an action using a slash command, for example /hug @dean and then have it mention this user and send a message in an embed that should be random.
What I tried either doesn't get a ...
1
vote
1
answer
210
views
Discord API returns 403 'internal network error' (Code 40333)
I am developing a Discord bot using Google Apps Script. The bot's primary function is to post an approval message as a reply in a channel and then immediately add a '👍' reaction to its own message.
...
0
votes
0
answers
29
views
Lavalink always returns loadType "error" for search requests in Discord.js bot
I’m running a Discord.js v14 bot with poru and a self-hosted Lavalink node. Whenever I invoke my play/search command, Lavalink connects successfully but immediately returns:
[Play Command] Search ...
1
vote
3
answers
72
views
TypeScript function overload
Why does TypeScript tell me "This overload signature is not compatible with its implementation signature"?
import { Client, ClientEvents } from 'discord.js';
class MyEvents {
execute: (......
-1
votes
1
answer
55
views
Discord bot /interactions commands structure definition
I am creating a Discord bot to collect user information when joining a community by prompting the user to provide the required profile data.
I have the following command:
const JOIN_COMMAND = {
name:...
0
votes
0
answers
36
views
user app get request returns 403 even when authorized
with the code
const res = await fetch(url, {
headers: {
Authorization: `Bot ${DISCORD_TOKEN}`,
},
});
if (!res.ok) {
const data = await res.json();
console.log(res.status)...
0
votes
1
answer
90
views
Discord.js: Trying to register commands globally across DMs. Commands show on Servers and DM with bot, but not on other DMs
I'm trying to get a Discord bot that has convenient commands across people's DMs (Like ESMbot). I coded it with the Discord.js module. However, I tried registering the slash commands and it appears on ...
-2
votes
1
answer
41
views
Discord NodeJS Show Modal When Validation Fails
I've been trying to get a new modal to appear with the same content after validation fails. In this context, I've wanted to force the user to input a number. Since it seems there's no way to do this ...
0
votes
1
answer
38
views
DiscordJS Bot AudioResource Null
My discord bot connects to the channel and the Audio Player state is "playing" but the Audio Resource is null even though it is routing to the path correctly.
async execute(interaction) {
...