djs-questions

13317 threads · Page 134 of 267

[TypeScript] - The VS Code alert a ghost error when i inset a ActionRow in message components array 5 messages
weak narwhal Firstly, the code: ```ts const button = new ButtonBuilder() .setCustomId("test") .setStyle(ButtonStyle.Success) ...
Events enum vs ClientEvents interface 6 messages
loud basalt is there meant to be differences between the `Events` enum and `ClientEvents` interface? for example, `Raw` is in Events...
Buffer as embed image 2 messages
Buttons not adding roles 74 messages
ashen topaz ^
TypeError: Cannot use 'in' operator to search for 'default_member_permissions' in undefined 30 messages
merry bear Hello, I have a problem after I update Discord.js Can anybody tell me what happened?
Bot doesn't reply but pings user with message.reply 23 messages
hazy ore I want the bot to reply but it instead, pings with a comma. I'm not sure if I'm just using the wrong syntax. My Code: ``...
OAuth2TokenExchange with @discordjs/rest 6 messages
polar edge I'm having trouble with the request to /oauth2/token using discordjs/rest. The problem is that the body must by of type ...
@discordjs package
Getting Initial Interaction Options From Subsequent Interactions 6 messages
marble tree I have a slash command that has a required string option. It responds with an embed with a string select menu that the u...
what’s the best way to learn discord js coding? 10 messages
paper raft I keep paying loads of money out to hire coders to add features to the bot and I really wanna learn how to do it myself ...
Intents 5 messages
trail jetty Hey, i try to use Intents, but it didn't work
V14.9.0 - Button in dm channel 10 messages
pls help DiscordApi error 12 messages
pseudo shoal DiscordAPIError[0]: 401: Unauthorized at handleErrors (file:///C:/Users/PC/Desktop/strikebet-bot/node_modules/@disco...
TypeError: Cannot read properties of undefined (reading 'FLAGS') 3 messages
plain scarab I don't understand what the problem is, I've already tried everything. help please
have bot react to every message sent 4 messages
hazy ore I want my bot to react whenever a message is sent, however it's not working for me my code: ```client.on('message', asyn...
Find pinned forum post? 17 messages
gaunt python Is there a way to natively fetch the pinned post of a forum channel?
test for bot being pinged. 4 messages
hazy ore I'm new to javascript so I might be tripping Here's my line: ```if (message.mentions != '@1087100813593301053') return``...
Asynchronous user fetching causing issues with embeds and buttons 57 messages
rich valve Hi, I'm using redis to track the number of messages a user has sent in a thread and I store it in a hash using the user...
Hello, I have problem with client to set online my discord bot 50 messages
vale sky ```const { client, GatewayIntentBits, EmbedBuilder, PermissionsBitField, Permissions } = require('discord.js'); const pr...
Jsonencodable is not a function 7 messages
late verge i get this error when i send command to the channel
iterate over Collection in an async context 10 messages
modest atlas How can I iterate over a Collection (specifically ChannelManager.cache) in an async context and run async functions on t...
Bot can't read client.commands.get() 11 messages
steady zealot I'm trying to let my bot run a command but I have came across a problem. On line 18 I get the following error: ```TypeEr...
Default selected channel 3 messages
copper pilot How to set/select the current/default channel in a ChannelSelectMenu? Or is this not possible at the moment?
help me 13 messages
outer frigate ``` Error executing ping TypeError: Cannot read properties of undefined (reading 'ping') at Object.execute (/home/ru...
Action Row not being sent 53 messages
ashen topaz ^
i want only the person who clicked the 1st button be able to interact with the 2nd button 2 messages
mild meadow i have these 2 buttons one sets up the crafter of the item and the other one is to list the item that was being crafted ...
The fields feel like they are taking up a large amount of space. 4 messages
scarlet sky Any reason why this is?
Emojis 4 messages
ashen topaz how do you add a regular emoji (non-guild) to a button? Do i just use `.addEmoji('\:heart:');`? or does \:heart need to ...
author only buttons 3 messages
spare urchin how do i do this
Canvas image embed error 2 messages
blazing kettle Hello, i try to put a canvas image into my embed but i have this error: ``` throw er; // Unhandled 'error' event ...
Bot activity not shown 13 messages
red oak Bot activity is not shown on discord server but bot is functional here are my intents ```const client = new Client({ in...
Question 13 messages
coral blade How am I there that was in the bot's status the bot's statics
Interactions failed 6 messages
winged willow ```js const { SlashCommandBuilder } = require("@discordjs/builders"); const express = require("express"); const app = ex...
DM Slash Commands 4 messages
stoic wave Can i hide commands in the Server Command Selector and just show them in DM Channels?
Quote Color 2 messages
stoic wave Hi, can i change the color of Quotes (`> Message`)?
How can I get the first message of a new forum post? 11 messages
carmine halo I found the event for when a new post is made but I can't find a way to get the first message. I thought maybe somethin...
Incorrect type in TypeScript? 6 messages
weak narwhal I'm creating a bot with discord.js andTypeScript, so now i am creating a command with subcommands Everything was going ...
path is not defined 38 messages
coral blade Problem
How do you delete an embed after 60 seconds? 7 messages
ashen topaz ^
this is more of a cmd question 3 messages
paper raft is there a way i can auto restart the bot if the cmd stops, when my bot crashes sometimes it doesnt close the cmd it ju...
Is there a way to setAutocomplete(true) in function of another option value? 4 messages
sacred dirge Try to put a condition on .setAutocomplete but get this error `ValidationError: Expected a boolean primitive`
node src/register-commands.jsRegistering slash commands...There was an error: DiscordAPIError[0]: 16 messages
i have problem 2 messages
knotty owl error `_Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'FLAGS') at <anonymous> (file:///...
Modal-Layout 5 messages
stoic wave -- **TITLE** ---------------------- -- TEXT [BUTTON] ------------ -- TEXT [BUTTON] ------------ -- TEXT [BUTTON] -------...
How do I make my bot have an invite to server button 3 messages
coral blade example ^ .
AutoModeration is not available for this guild!! 6 messages
Token removed because bot connected more than 1000? 8 messages
sacred dock I got the following msg and i'm trying to figure out how to prevent it, what could it be causing it: It appears your bot...
Output of perms of a Role 3 messages
neon tinsel You can with: `const permissions = role.permissions .toArray() .map((P) => ${P}) .jo...
Class Events 5 messages
iron sierra Class `Events` have bugs with interaction create event with multiple commands on buttons. When Bug-fix?
I Have Installed Ubuntu But Bot Isnt Running Here Is The Erro 6 messages
jovial moon ```/home/usr/Discord/node_modules/discord.js/src/client/BaseClient.js:29 userAgentAppendix: options.rest?.userAg...
setActivity not working 47 messages
ashen topaz need help