djs-questions

9202 threads · Page 64 of 185

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...
1150878580193116250
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...
1150878580193116250
commands dont appear/work 4 messages
left folio const fs = require('fs'); const { Client, Collection, GatewayIntentBits, EmbedBuilder, ActionRowBuilder, ModalBuilder, T...
1150878580193116250
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
Package path error 4 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 ...
1150878580193116250
Sharding Dies 3 messages
smoky stag here is some of my code: shards.mjs: ```mjs import { ShardingManager } from "discord.js"; import dotenv from 'dotenv'; ...
1150878580193116250
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...
Warning: Not implemented: ClientRequest.options.createConnection 1 messages
runic dew My bot runs normally, but I get this warning, is there something I need to adjust? https://github.com/rmvtlwt/ariinn
1150878890307358882 998292157150535700
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...
1150878580193116250 998292157150535700
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
1150878580193116250
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...
1003448629866020986
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....
1150878580193116250
MessageCreate API 4 messages
supple pumice Do someone knows how to make something like the messageCreate Event but for a other API?
1150878580193116250
Autocomplete on button click 3 messages
pliant gulch Hi! Can I autofill a command when a user clicks a button on one of my messages? I need text input, and modals aren't gre...
discord.js help 5 messages
plush shell ```js if (message.content.startsWith('hi')) { const last_message = await message.channel.messages.fetch({ limit: 2 }...
typescript error 5 messages
weary leaf ```ts Type 'Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">' is missing the following properties from ...
VoiceChannel members is always 0 23 messages
silver light My bot has all the intents enabled in the Dev Portal and programatically (including GuildVoiceStates and GuildMembers in...
Array of objects into embed fields 7 messages
kind salmon Hello, I am having an issue with adding an array of objects to multiple embed fields. The object in question is compris...
object does not work 2 messages
timber spoke It was working when I was using js, but it didn't work when I switched to ts.
1150878580193116250
when I connect to a specific voice channel, I get this Discord API Error 6 messages
lean mesa Hello, I've a problem in fact when I connect to a specific voice channel, I get this error ```/home/container/node_mod...
command in my bot 2 messages
ancient lake When i type help it keeps doing that
1150878580193116250
adding an Emoji to a button getting "invalid emjoi" 9 messages
drowsy coral I am trying to make a simple game of chance where you select a "shell" that something is hidden under. I want to put a...
Rare Error 32 messages
torpid holly ```js [ERROR] Encountered error on event listener "messageUpdate" for event "messageUpdate" at path "/home/container/src...
How to check if message contains images/other files 2 messages
glossy crane My bot crashes everytime it tries to copy a message from me and I attach a file to my message. ```javascript client.on(...
Patch webhook type, ActionRowBuilder issue 5 messages
torpid marsh Hi, I am using the Discord API to patch webhook message using he help of DiscordJS to create components. I'm trying to ...
Unsuccessful implementation of autocomplete with subcommands 12 messages
vagrant rapids Here is the abridged code command file ```javascript module.exports = { data: new SlashCommandBuilder().setName('getne...
how can i send both a message and multiple files at the same time? 15 messages
dawn juniper im trying something like `channel.send("message",{files: res})` but its not working
Question about Commando framework. 9 messages
errant quartz Maybe, I can answer this myself by just googling it, but after some time away from the djs scene I found out that the Co...
Updating bot without shutting it down, 14 messages
dusky oyster Hey so my question is pretty straightforward; is there any reliable/recommended way to update slash commands and other s...
Slash commands not registering after verification 3 messages
unique nebula My discord bot recently got verified, and ever since it hasn't registered slash commands. I was wondering if this might ...
url.js gives error 6 messages
deft moon Code: ```const { SlashCommandBuilder } = require('discord.js'); const fetch = require('node-fetch'); const data = new S...
/reload error 9 messages
deft moon /reload gives an error when i try to reload a command Error while executing this command (inside discord ) Code: ```cons...
Fetch deleted messages by discord upon a user ban 7 messages
twin cave Currently I am fetching all deleted messages which were deleted manually. Unfortunately that does not work when I ban a ...
1150878580193116250 998292157150535700