djs-questions

13317 threads · Page 65 of 267

How do you turn on a discord bot? 10 messages
rare silo It ain't on
TypeError 21 messages
warped wind Code: `const guild = bot.guilds.cache.get(process.env.GUILD_ID);` Error: `TypeError: Cannot read properties of undefi...
Modal — Pagination 5 messages
jade vector Hi! To construct my bot, I wanted to use modals allowing user reply. But my number of fields is more than 5. It's is po...
node @discordjs package
duplicated interactions 10 messages
keen sequoia okay i need help, because i have been hititng my head against the wall abt this for days. my interactions keep doubling ...
Messages: combining selectors and input fields 5 messages
haughty wave Hey, Is it possible for example with modals or messages to have a combination of inputs for free text and selectors? (su...
Set embed color to the role color for the bot? 3 messages
solid island Is there a way to set the color of an embedded message to the color of the bot's primary role in a server? I have a bot ...
node
when i send a post in a media channel, i get the threadCreated event but not the messageCreate event 6 messages
amber thunder the discord API claims you're supposed to get a `messageCreate` event, as the message isn't created at the time the thre...
dev release
I need help applying functions to my discord bot. 113 messages
desert fractal Here is the code block for the function of confirm: ```js if (confirmation.customId === 'confirm') { ...
Help to send a message in another channel 5 messages
glass dome Hello everyone, I'm developing a Discord bot with Discord.js 14.14.1 and I'm encountering a problem. (use Typescript) ...
I don't know how to fix it 36 messages
little forum Generally I don't know how I can define emved at the beginning. error: TypeError: Cannot read properties of undefined (r...
Bot will not push new commands to server 32 messages
surreal nova Cant access commands I make froem the server.
Error DiscordAPIError[50001]: Missing Access 12 messages
lone owl Code: ```js async updateInvites(guild: Guild) { const vanity = await guild.fetchVanityData() if(vani...
/embed not working 9 messages
deft moon Code: ```const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() ...
Deprecation Warning (VSCode) 3 messages
wary cloud Getting an issue with the `punycode` module. ```(node:22123) [DEP0040] DeprecationWarning: The `punycode` module is depr...
Opening modal causes an error message in chat but submission works as expected 2 messages
drowsy coral Code is written using discord js v14.14.1 The code works to show the modal and it handles submission properly and return...
Ping Bot 7 messages
grizzled delta Guys, I can't seem to get the correct values, for example Discord API value is not good at all, it is displayed at -1ms,...
help create my discord bot on nodejs and discord.js 8 messages
mossy hound my code ``require('dotenv').config(); const { Client, Intents } = require('discord.js'); const client = new Client({ ...
Remove All Rection Detection 5 messages
gloomy flame is there any way to detect who remove all reactions from a message?
Need Help for Fetch Ban CreatedAt 7 messages
static light ```js const { Events } = require('discord.js') module.exports = async (client) => { // UNBAN COMMAND client.o...
Correct 'type' for Interaction Object? 12 messages
torpid marsh Hi, I'm trying to find the correct type/interface for the Interaction object which is sent by Discord to my endpoint usi...
DM an User Catch Issue 7 messages
rare coral Hello, I have an issue with a ban command. If the bot cannot DM an user, it should handle the error and reply anyway wit...
node
Is it possible for a command interaction to call another command in its execution? 4 messages
kind salmon Instead of creating the same embed twice is it possible from lets say "command 1" to call the command "embed" so it runs...
Integrating AI into my bot 6 messages
echo ingot Hi, I would like to add some form of AI chat bot to my bot that can be trained on a set of data in the servers knowledge...
node
commands dont appear/work 4 messages
left folio const fs = require('fs'); const { Client, Collection, GatewayIntentBits, EmbedBuilder, ActionRowBuilder, ModalBuilder, T...
node
MaxListenersExceededWarning: Possible EventEmitter memory leak.. 11 messages
deep crest I recently switched my project from CJS to ESM, and while nothing in my code actually changed other than my import/expor...
Get User language 4 messages
split cove I wanted to ask if its possible to get User language. I want to create a welcome Bot. And based from the User language, ...
embed 23 messages
nimble relic Is it possible to make a text with a link in the title, but so that it is not blue but white?
[AbortError]: Request aborted 3 messages
quick fjord ok so when channel.send(etc...) returns an [AbortError]: Request aborted, it acrtually sends the message up to 3 times s...
Learn How To Spell 4 messages
ornate monolith **Wrong:** Automaton **Correct:** Automation
deferReply errors with basic discord.js bot 4 messages
@discordjs package
Package path error 5 messages
kind glacier error : ```js node:internal/modules/cjs/loader:598 throw e; ^ Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "e...
StringSelectMenuBuilder error 9 messages
proven drum error: ```js data.components[0].components[1][COMPONENT_LAYOUT_WITDH_EXCEEDED]: the specified component exceeds the maxi...
Button interaction reply in public chat 14 messages
haughty wave Hey, Is it possible to reply to a button press on a channel, in a way that it is only sent to the interaction user? So ...
Send a dm, when a user joins 2 messages
frosty moat Does anyone know how to check if a user has dms enabled before sending them a message. I want to send a welcome message ...
node
Sharding Dies 3 messages
smoky stag here is some of my code: shards.mjs: ```mjs import { ShardingManager } from "discord.js"; import dotenv from 'dotenv'; ...
node
Can I change the customization status of users on my server in bulk? 2 messages
mellow kite When I create an economy system on my server, I want to show the balance in the user's status. Is there any way to batch...
Difference between client.on("ready") and client.once(Events.ClientReady) 3 messages
steel panther What is the difference between these two? ```js client.on("ready", () => { // code }); client.once(Events.ClientRead...
How can i use fetch message using DM? 28 messages
weary venture How can i use fetch message using DM?
Set 'about me' field 13 messages
burnt lynx Hello, I was googling for an answer but didn't find anything in the library. I'm not sure if that's still the case but i...
node @discordjs package
custom code for the bot 7 messages
dusty moss Hello, I'm go be creating a bot soon, I have a question, so I'm using ChatGPT to help me with custom code, but what vers...
TypeScript error when adding ActionRow to reply 3 messages
thick hollow I'm trying to create a basic ActionRow with a link button, but I get this weird TypeScript error when doing so. I don't ...
/avatar (user) 10 messages
hollow meteor want a /avatar (user) which shows the user inputed in (user) profile picture inside of an embed
select menu 3 messages
stiff venture Hi, is there any documentation on how to create a select menu ?
Vc status thing 3 messages
bitter rock Hey i want to know if i can somehow set the vc status to some text using discord.js when the bot joins the vc.
I can’t get my bot to load commands 63 messages
rustic lynx Title. I’ve followed the guide and I’m not getting any errors but still no commands
DM messages not being received properly 188 messages
mental granite it dont work
node
rpc help/sdk help 4 messages
glacial delta https://pastebin.com/N5jfGxmn i got this code in js for my electron app to have a discord presence but it doesnt seeem t...
RPC
User class pronouns property 4 messages
dusky badge Hey, is there a way that i can get the pronouns of a user? i wasnt able to find a way but i might just be being stupid <...
Question about discord.js 13 messages
naive herald I want to code a discord bot in vs code. but I'm wondering if theres a way I can code it without having to install node....
node
MessageCreate API 4 messages
supple pumice Do someone knows how to make something like the messageCreate Event but for a other API?
node