djs-questions

13317 threads · Page 141 of 267

data.choices[0][MODEL_TYPE_CONVERT]: Only dictionaries may be used in a ModelType 7 messages
oak vigil That is what I am responding with: ```js interaction.respond({ name: "a", value: "AA" }) ``` What am I doing wrong?
BUTTON INTERACTION ERROR EXCEPTION CRASHES APP 21 messages
grim tide What could be the problem that sometimes clicking a button it throws this error? requestBody: { files: undefined, jso...
Custom Status 3 messages
jovial moon Is There Any Method Like Keeping A Separate Status For Separate Server Like Mee6 Does???
Autocomplete Question 4 messages
gusty thistle I don't understand what autocomplete does and I can't seem to find any information on this that goes in-depth. What does...
Move messages (specially comment threads) from one channel to another? 7 messages
dawn pumice Hello! I was wondering if it was possible to move a message from one channel to another? Or if not, if it was possible...
Are those checks enough to avoid a "missing permission" error? 7 messages
shadow onyx I'm making a command that sets up a mute role, and it seems like I incurred in errors in a few channels. Are those check...
How to tell if I'm hitting Discord's rate limit 4 messages
pliant swift As asked - my code is hanging up on creating a role after having created a few roles already - is this normal behavior f...
Can't use node deploy-commands.ts 27 messages
haughty robin This is the code I have on my deploy-command.ts however when I use node deploy-command.ts I get the error on the image. ...
Error when adding 'commands' variable to my bot 7 messages
How do i access an embed of a message trought its message id? 2 messages
west iron .
Unable to invoke the discord modal. 19 messages
stiff rivet My full errror is: `TypeError: (intermediate value).setTitle(...).setDescription is not a function`. Layout. So I'm cre...
my button is having multiple errors the errors are [ 'value', [ExpectedConstraintError] ] 29 messages
mild meadow not sure why it is having this error ```else if (interaction.customId === 'Cancel') { if (player.has(`${...
FLAGS is undefined. 7 messages
past egret I'm trying to make a discord bot that reacts with a thumpsup and a thumpsdown to even message sent in a specific channel...
Get number of channels in category 4 messages
pliant swift Hello, pretty simple, trying to do the above. if I have the CategoryChannel object, I've tried CategoryChannel.childre...
AutoMod? 4 messages
last relic Is there a docs or anything how to use the Automoderation stuff in discord.js?
Can bots have server-specific profile pictures? 2 messages
raven oriole I know that users can set server-specific profile pictures, but can bots also do this and is this functionality availabl...
whats the limit for automod rules on one server 3 messages
upper wraith how many automod rules can a server have
PayPal API 5 messages
hallow briar ```js const { Client, GatewayIntentBits, Collection, Events, EmbedBuilder, PermissionsBitField, Permissions, MessageMana...
Best way to use Lavalink with djs v14? 2 messages
fathom hinge Hey everyone, a year ago i wrote a music bot using djs v13 & erela.js for Lavalink connectivity. Ive not been in the loo...
DiscordAPIError[50035]: Invalid Form Bodydata[BASE_TYPE_REQUIRED]: This field is required 3 messages
fathom cliff ```DiscordAPIError[50035]: Invalid Form Body data[BASE_TYPE_REQUIRED]: This field is required``` trying to show a modal...
Is there a way to use .join() function for a collection and only show the first 6 collections. 4 messages
mild meadow so i am using an embedded message to try to show the first 6 collections but when i use the collection.first(6) it shows...
Alternative way for createMessageCollector without the Message Content Intent 10 messages
prisma fjord Hi there ! I just got my bot verified recently and everything works great until I found out that I have to disable all t...
Specific Words from message content 2 messages
drowsy crescent Hey, how can I get specific words and their following word from a message? Like: message.content.find(,word that should ...
Slash Commands not Registering after being added to a new server 4 messages
coral sparrow ... but they work on the old server it was running on.
Can I use two tokens in one project? 20 messages
drifting haven Is there method to put more than one token in same project?
i am getting an error from my modal but it is doing what i want when i hit submit the modal. 4 messages
mild meadow the modal is working but the box wont go away i know it is from the interaction.message.reply but i need it that way for...
can someone for the love of god tell me how to reply to a GatewayDispatchEvents.MessageCreate event 30 messages
quick flower code looks like this: ```js const client = new Client({ rest, ws }); client.on(GatewayDispatchEvents.MessageCreate, asy...
@discordjs package
Which Discord.js version supports API version 9? 4 messages
west marten Which Discord.js version supports API version 9?
client.ws.ping was removed? 15 messages
proven gyro How do I get the bot ping now? Im using last @discordjs/core @discordjs/ws last package version
@discordjs package
how to fetch all messages in channel 12 messages
simple sierra Using data from the command
Custom bot's avatar on different servers 3 messages
gaunt ether Is it possible to provide possibility for users to change bot's avatar locally on servers?
Send a message in a GuildBasedChannel ( TS ) 9 messages
robust sentinel Hello ! I'm trying to send a message when a player join my server. For this, I used the event GuildMemberAdd. I now need...
How to send data externally to bot 3 messages
past eagle I'm hosting my discord bot on Contabo and I'm looking for a way to send data externally to the bot, for example using a ...
Webhooks 6 messages
drowsy crescent Hey, I wonder how I can detect if a Webhook was send?
.addChoices() - Dinamically update the options 3 messages
grave mulch Hello 🙂 I'm trying to figure out if it is possible to manage the options with a sql query in order to populate them eve...
createAudioResource() 3 messages
@discordjs package
DiscordAPIError[0]: 405: Method Not Allowed 15 messages
help my bot doesn't seem to listen to my command or send messages 20 messages
crisp verge After few months im tryng to create a new bot but it seems to not listen my command test, the bot runs, it doesn't seem ...
timing issue with caching of guild? 23 messages
snow anchor I'm wondering if I'm getting a sharding case of cache LRU replacement or something similar...I have a rare case where "h...
isText 20 messages
random sonnet hey, i need help
See the contents of an attachment with attachment option of a slash commands 6 messages
Type 'ActionRowBuilder<AnyComponentBuilder>' is not assignable to type 'APIActionRowComponent' 22 messages
plain willow TypeScript error with the message: ``` Type 'ActionRowBuilder<AnyComponentBuilder>' is not assignable to type 'APIActio...
Random disconnect from websocket 15 messages
regal pewter I have periodically reconnecting to websocket every 1-2 hours and I do not know how to fix it. I thought it was my inter...
How can I detect user answer ? 17 messages
cyan sequoia Hello ! I'm trying to create a quiz bot for a blindtest game. The bot is supposed to pick randomly a sentence in my `qu...
Options as alternative to subcommand 3 messages
urban nimbus I want to have a command that either has a subcommand or an `IntegerOption`. Shown in the screenshot are the three comma...
About the agreement rules event 6 messages
visual crater Hey, i wanted to now how i can have the information on my bot then a person accept the rules whit the Discord things mak...
Hello, I'm making a discord bot, I just started these things, I want to make a command like this, ho 20 messages
royal notch Hello, I'm making a discord bot, I just started these things, I want to make a command like this, how can I do it?When a...
I want to edit the embed in the slash command with my modal submit in my interactions create 37 messages
mild meadow im not sure if this is possible and im almost certain that what i have is probably nowhere near how to do it but im tryi...
Permissions stupid asf 64 messages
plucky heath When I use `message.guild.members.me.permissions.toArray()` it returns an array of permissions but the bot doesn't have ...
Role color 7 messages
plucky heath Bro wtf this server look weird af but is it possible to change the bots role color (the one they get when joining the se...