djs-questions

13317 threads · Page 111 of 267

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...
@discordjs package
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...
@discordjs package
[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...
@discordjs package
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...
@discordjs package
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
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...
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...
Which version of discord.js? 6 messages
nocturne garnet Should I use the @discordjs/core repo or the 14.11.x version?
@discordjs package
locales in interactions? 3 messages
light orchid so i have a command that handles locales, it has buttons and those are handled in a different event handling file. but I...
Can't send attachment from buffer 39 messages
soft surge i made a bot that preview STL files, but got an error when trying to send the message, Code and error is below
Internal queue causing too much delay in front end 11 messages
eager prairie How would we either work around or speed up the internal queue implemented by Discord.js? At some point it seems there w...
Authorization code grant flow 9 messages
mellow token Hey y'all first time discord.js user. I'm using the latest version, going through the Authorization code grant flow in t...
Deno support 5 messages
rare rain Do the discord.js subpackages work with deno?
deno @discordjs package
Pronouns 16 messages
vale burrow Is it possible to access a users Pronouns to display on a UserInfo command?
<@&undefined> 5 messages
river compass the collector:```js collector.on('collect', i => { if (i.user.id === interaction.user.id) { if (ms...
Saving Cooldowns 7 messages
Getting Clients Connected to Voice Channels without Cache 8 messages
mild copper I'm working on a bot that should help us see if people who signed up for an event are present in voice chat and if so as...
How to make a slash command that disable/enables other slash commands? 3 messages
lucid bolt Node -v 18.16.0 Discordjs v14.11.0
Detect if an Ephemeral message is still onscreen? 14 messages
oblique musk I am sending an Ephemeral message containing an embed to the user with interaction.reply. I store that reply message in ...
Discord.JS Feature Request 4 messages
dapper jewel Will the functionality to extend the Structure of a class comeback sometimes?
Moving from v13, autoArchiveDuration no longer accepts 'MAX' as it requires int32 10 messages
dull glade Hi! I'm working on migrating from v13 to v14, everything is going well except for one specific thing. autoArchiveDuratio...
Bad typings 9 messages
compact gate ```ts export type RESTPutAPIGuildMemberResult = APIGuildMember | never; ``` must be ```ts export type RESTPutAPIGuildMem...
@discordjs package
BASE_TYPE_MIN_LENGTH 4 messages
peak bough Hey 👋 , I'm getting the following error from the following code, any ideas? ```js const select3 = new StringSelectMen...
Need help with subcommands 43 messages
turbid meadow i cant figure how to get this subcommand right, its the info command and it has the user and the server subcommands
Typescript template/support 5 messages
feral jolt Hey, I want to convert my discord.js javascript bot to typescript, is there any good or popular discord.js template/tuto...
@discordjs package
"chartJS.register is not a function", why? 3 messages
neat monolith it says that after updating several npm modules
Need help with setting up a Role option in a slash command 9 messages
turbid meadow im tryna make a command to specify a income role, when i try to start the bot i get this error: ```/home/container/node_...