djs-questions

9202 threads · Page 131 of 185

discord.js txt file write in 14 messages
smoky wren .
guildMemberUpdate doesn't fire on users. 72 messages
lament vessel Hey, I'm having an issue, I was hoping someone here can help. I'm trying to use `guildMemberUpdate` to detect when a rol...
Get user who clicked button 17 messages
marble inlet I would like to get the nickname of the user who pressed the button, only that when I type there, for example, interacti...
Recommended tsconfig.json 6 messages
stiff wedge Like the title says, is there a recommended `tsconfig.json` configuration for discord bots or does anyone recommend some...
New Line in .txt file 2 messages
smoky wren ``` client.on('message', function(message) { if (message.content.startsWith("+" + "sell")) { let sells = fs.read...
Any integrations with the Discord soundboard? 2 messages
quaint loom Would be good if we can add a sound to a server, as well as remove a sound through the discord.js module
interaction already replied 5 messages
grim tide how can I avoid interaction already replied
what is a good template to start with 7 messages
prime vortex Hey what is a good template to start with a discord bot ? (the newest version 14.11) (multi guild)
button click 13 messages
grim tide why it doesnt collect button interactions?
[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...
Buttons not adding roles 73 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 ...
998292157150535700
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...
RPC Question 1 messages
dusky pine is it possible to retreive voice channel information using discord-rpc ?
1003448629866020986
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
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 56 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...
Ngestack when debugging scripts 1 messages
lone holly My script stacks when debugging when using this code ```const { Client, Intents, MessageActionRow, MessageSelectMenu } ...
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 52 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?
discord.js example not working 1 messages
grizzled venture i used the example from https://discordjs.dev/docs/packages/core/0.6.0 and im getting this error
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`