djs-questions

9202 threads · Page 109 of 185

guild icon url not working 12 messages
formal lion so basically i'm having problems with fetching the icon URL of a guild, this is my code and it's giving me this error. I...
Context Menu 18 messages
feral jolt Hey, I'm trying to register context menu commands but not sure how. I've a command handler that sending a put request to...
[TS] Argument of type 'GuildMember | APIInteractionGuildMember | null' 9 messages
rain skiff ## full error ``` [Event: ready] [Uncaught Error] src/cmds/me.ts:11:36 - error TS2345: Argument of type 'GuildMember | A...
Questions about editing ephemeral embed messages 14 messages
burnt niche I am working on editing ephemeral messages but I don't know how to. I dont understand how ```interaction.editReply``` wo...
discord.js soon deprecated by @discordjs/core ? 2 messages
lime cove hey, i wanted to ask if discord.js will be deprecated soon and /core will become the "new" discord.js, because then you ...
998292157150535700
Cannot read properties of undefined (reading 'applicationGuildCommands') 6 messages
wooden ivy i keep having the problem Cannot read properties of undefined (reading 'applicationGuildCommands')
idk what 1 messages
opal wolf wtf, why??? how to fix it? Why is it like that?
Autocomplete + Other options involved that make the autocomplete dependent on those option values 5 messages
thorny skiff Am I able to get the waiting values of the slash command options to be used for the autocomplete? I have a channel optio...
Property 'cmds' does not exist on type 'Client<boolean>' 8 messages
rain skiff It's my first time using TypeScript with discord.js & express, I used some of my JS knowledge and it is causing an error...
Error when creating embed 5 messages
young blaze I'm getting the following error when trying to create an embed. My main goal is to let the user enter the name, select a...
i need js code for my bot status 2 messages
split pike i need discord.js code for status of my bot like Watching **My DMS** my js version is 13.6.0
Select Menu Question 9 messages
gloomy flame I want to create a select menu ticket with modal is there any way to update the menu and show modal too?
there is a problem with the app 8 messages
wooden ivy idk what the problem is
Discord.js Old Theme 2 messages
near hound Whats the theme used in the old discord js website? I don't know if it's custom or not but i have saw a website that has...
Help with collection filter 1 messages
sand cipher I am trying to filter out threads which has been locked or archived, but it just return the whole collection back. ```js...
How would I fetch a message.. 2 messages
surreal cedar and edit it
Question regarding GuildMemberAdd and GuildMemberUpdate 4 messages
quaint loom So my bot currently detects people who donate when they obtain the Premium role in my Discord server. However, I've came...
many many errors 8 messages
karmic eagle the code: ```const { ActionRowBuilder, ButtonBuilder, ButtonStyle, SlashCommandBuilder, EmbedBuilder } = require('disco...
error 405 method not allowed 2 messages
crystal arrow these are my codes ( and the file name is 'register-commands.js' ) ```js require('dotenv').config(); const { REST, Rout...
Rest returns 404 error 2 messages
nocturne garnet This might be because I'm doing something wrong, but when I try to use the rest api option I get a 404 error (this happe...
998292157150535700
Channel Select Menu doesn't seem to function? 11 messages
turbid root Why is this erroring: ```js const addChannelSelectMenu = new ChannelSelectMenuBuilder({ custom_id: `add_team_channel...
How to do something like that? 2 messages
cloud night HI all, I am newbie here, recently found your lib. I want to build a self-bot which will put a reactions on messages onc...
998292157150535700
[CLOSED] A question regarding discord.js with types. (TypeScript) 19 messages
misty cargo Hi! I'd have a question for the typescript users here. My commands can be run by the `InteractionCreate` and `messageCre...
help 16 messages
gleaming fjord Why isn't it working for me?
how to make this concept work? 21 messages
karmic eagle i'm trying to make a command where i can set the bot's status & then choose the playing/watching/listening etc type in a...
create context menus 5 messages
supple pumice I get no error, but no context Menus are created after start the bot: ```javascript … const rest = new REST({ version: ...
Bot get crash if import external list with/without async 34 messages
versed zephyr ## My Code embeds.js: https://pastebin.com/k6j32mSM lang_parser.js: https://pastebin.com/qsM14GiF Fragment from utils.j...
998292157150535700
Question about v0.6.0 3 messages
shy solstice The next version of DiscordJS documented at https://discord.js.org/docs/packages/core/0.6.0 will be the v15 or it's a co...
998292157150535700
My bot is running on only Node.js v16 not v18 6 messages
sinful wraith ```const express = require("express"); const app = express(); app.listen(() => console.log(`Bot Is Ready`)); app.use('...
Migrating to v14 (Typescript) 4 messages
loud yacht Hi there I'm having trouble porting this v13 code over to v14 ```ts 1 const msg = interaction.targetMessage as Message;...
User being displayed as [object Object] 6 messages
dense sand Hey, I'm trying to display a leaderboard of users having the most gold saved in my sqlite database, here's my command: `...
error 7 messages
opal wolf I have such a problem, the channel id in config.json is correct
Spams the shard log and does not write what it says in 'disconnect' when it starts to initialize 1 messages
pallid barn I wanted it to write what i wrote in 'disconnect' when it starts to initialize in the following shard system and i wante...
ActionRowBuilder type in interaction.reply component 7 messages
wooden spade Hello, I'm creating a typescript discord handler and want to try the buttons, however I have a typing error. I looked at...
Problem with onboarding my bot. 2 messages
wild raptor Hello, I'm having problems with the onboarding, what happens is that when a user changes roles in the onboarding, my bot...
Problem with incorporation my bot. 1 messages
wild raptor Hello, I'm having problems with the incorporation, what happens is that when a user changes roles in the incorporation, ...
messageCreate not working in dms 3 messages
sweet owl I am unable to pick up any messages from dms using the messageCreate event, I have the correct intents and partials, wha...
Why i can't find my user data in 'Message'? 3 messages
stable hinge So, im trying to create a awaitMessage with button interaction here is the code ```ts const msg = await...
Documentation on Collection 3 messages
sweet tundra Looking for the docs on the Collection class on the Discord.js website and all of the links take me to the main discord....
Optimization 2 messages
spare mica Hello, I have a question can I optimize, reduce this line of code or not at all? ```js if(req[0].staff !== "player" && ...
Does it good using collector inside a collector? 4 messages
stable hinge Hi, so i was creating a collector message with button, and i want to made a second collector when user react the button ...
Creating a modal after a button click shows an "Unknown Interaction" error 10 messages
unborn walrus I've created a system which dynamically creates a sequence of embeds, components and select fields for a Setup command. ...
I have a issue where if my bot is turned off and back on it isnt catching who is leaving at all 5 messages
summer nacelle client.on('guildMemberRemove', member => { client.channels.cache.get('1133203797771046912').send(`**${member.user.tag}...
How to import images in a embed message? 5 messages
lucid bolt how to import images that are in my bot folder in a embed message? Node -v 18.16.0 discord.js 14.11.0
Is there any way to edit an ephemeral by message and channel id? 8 messages
nimble wolf Is there any way to edit an ephemeral by message and channel id?
Edit Embed 6 messages
gloomy flame Is there any way to edit old embed with his message id?
discordjs can webhook send message with \n? 5 messages
radiant hearth I tried and it didn't work? ```js let message = BolumunSayisi+". bölüm geldi!\n"+` <t:${DateNow}:F> `+Link ```
Bot not responding to prefix or anything but is online 10 messages
vale burrow My code below is what I am using and my prefix is: `!` using ```json "dependencies": { "discord.js": "^14.11.0" }`...
Send lightning network lnurlp link 12 messages
trail mason I'm starting to develop a bot in typescript with discord.js v14 and a command from the bot generates a lightning network...
Don't include lib.dom.d.ts 12 messages
shell lance Apparently discord.js includes lib.dom.d.ts types. This pollutes the user's type namespace with dom types by just includ...