djs-questions

9202 threads · Page 179 of 185

2FA is required, but I don't know how? 15 messages
rain skiff I'm using the latest installation and node v18.3.0. I have 2fa for mod actions enabled on the server the bot is on. Thi...
Is it possible to have a button and a select menu on the same action row 4 messages
frank flame If possible please help
error when running node bot.js 5 messages
rancid plover daniel-desalvatore@raspberrypi:~/Desktop/stonkbot-master $ node bot.js /home/daniel-desalvatore/node_modules/@discordjs/...
Equivalent for 'GuildBan' in eris 2 messages
shy harbor Just this (I'm using typescript)
998292157150535700
how to send webhooks in forum posts? 4 messages
brave pewter how to send webhook messages in forum posts <#1006698887605653565>
How to get most recent messages from channel 7 messages
nocturne rose I'm trying to have my bot get the most recent message of the channel, but it's returning undefined. How would i do that?...
Accessing .createdTimestamp from sent 12 messages
toxic comet Using typescript, but not sure what to cast `sent` to to access the `createdTimestamp` property. It's currently conside...
What type holds all types of events? 12 messages
opaque oak What type holds all types of events?
extraction of button logic to an interaction 34 messages
jagged herald i'm having some difficulties comprehending how button interactions should work I have some button logic residing in a co...
ExpectValidationError expected 12 messages
nocturne rose I'm getting a weird error message from the sapphire node module. Here's the message: ``` C:\Users\esmit\source\repos\Vi...
invalid webhook token 2 messages
untold plover this happens when an user runs either /profile or /start i really hope i could get some help with this i've added multip...
client.on event getting duplicated 6 messages
granite sand ```js client.on('messageCreate', message => { ``` now i gonna make turn-based rpg on discord When i start turn, and sen...
Cannot set multiple rule actions for automod ? 12 messages
uncut sky Hello everyone, How can I set multiple actions for the automod ? It seems the `actions` property does not accept an arra...
Replying to interactions that wait for modal submission 8 messages
obsidian scaffold I may be approaching this wrong, but I haven't found a successful combination of deferring/replying/updating for when an...
Can I send emojis within code block? 7 messages
elder lynx I want to have the following content within a code block 💲10 I have tried ```:heavy_dollar_sign:10```` which doesn't w...
How to make a file with const filled with text and use it for commands in other file? 9 messages
weak kestrel I donc want my big list of command to be in the middle of my slash command, how to I import a const that is in another f...
The following code SOMETIMES crashes bot 5 messages
scenic scaffold I wrote code to log when changes occur on my server. I know that some of the things are stringify without needing to be....
rate limit documentation 13 messages
vagrant canyon I'm looking for a complete or detailled list of rate limiters for each actions.
Taking SelectMenu data to Modal responses 7 messages
restive veldt There is probably a simple solution to this, but I couldn't think of any, so let me know! I illustrated what I wish to d...
issue with a lock channel command 209 messages
torpid holly ```js if(message.channel.permissionsFor(message.guild.id).has("SendMessages") === false) { message.channel.send({e...
Introduce a timeout on Slash Commands 8 messages
hollow night How would I go about adding a timeout to my slash commands that once the timeout is up, it removed any buttons or select...
Cannot Get Custom Emoji Information 2 messages
radiant pawn Discord.js version: discord.js@14.7.1 Node.js version: v16.9.1 I have included intents `GuildEmojisAndStickers` in my c...
Author missing from oldMessage on MessageUpdateEvent 5 messages
supple fern I am listening on MessageUpdateEvent. When I delete the embed from a contentless message (only embed), a message update...
Is it possible to have an autocomplete user command ? 5 messages
dawn thistle I saw in the documentation that a property of AutocompleteInteraction is "commandType". Does this mean that we can have ...
Bot going offline while script is still running 10 messages
opaque tree I've been developing a discord bot that takes use of the Google Calendar API. I've made quite a few bots in the past usi...
how to make a ban command with discord.js 7 messages
untold star Can some one tell me the code
Error Interaction has already been acknowledged occurring when more than one use the same command 13 messages
unborn siren I'm having this error just when more than one user use the same interaction at the same time
Drag-and-drop box doesn't appear when addAttachmentOption is used 5 messages
lime kernel Am I doing something wrong? The file drag-and-drop box isn't there. Snippet of my code: ```js data: new SlashCommandBui...
How can I change the shard id when sharding? 4 messages
forest sierra How can I change the shard id when sharding? When I boot with two devices, both shard ids are 0.
Memory usage increasing continuously 2 messages
austere quiver I have music bot it is in 42 servers as of now. When I start bot it use like 200MB of memory but now (after 24 days) mem...
make a string content safe without any mentions 7 messages
tough stag hello, is there a function that converts a string safe without any mentions. i am making my bot forward messages to a se...
presence?.status == null NOT WORKING 28 messages
coarse shell **I Was Trying To Update My Bot From Discord.js v12 to v14 BUT** **Now My Bot logs offline members only when i run the ...
random connect timeout error 16 messages
latent sky Hey, I'm having a Connect Timeout Error for no reason. I know my computer is fast enough for this. My code is ```const {...
Simple Command that displays hello 3 messages
oak forge In need of a command template im new to discord.js and need it for discord bot to display pretty much one big announceme...
How to detect when a specific user joins or leaves a VC 14 messages
waxen trout So im trying to make a discord bot that detects when a specific user joins/leaves a VC and then the bot follows the user...
Infinite Rate Limit & Global(...) ? 51 messages
rugged ginkgo So I had an occurance of my bot not working due to rateImiting. Pictured are the overall occurance of the RLs, the init...
Managing command access depending on roles 6 messages
oak ether Hello ! <a:PaimonWave:755788648661647401> I would ask what's the best way to give (or not) access to a command, depend...
Stickers in Embed or Message? 3 messages
last relic Hello i wonder if its possible to use stickers in embeds and messsages if it is then how?
2nd row of description in embed 3 messages
tired galleon ```const { EmbedBuilder } = require('discord.js'); module.exports = { name: "socialmedia", description: "Returns we...
How can I reset the selection of a SelectionRow? 3 messages
lean elbow Hey guys, look the picture. After I click on a row item, its selected for ever, how can I put the placeholder back in it...
Test if user is banned 20 messages
summer mantle How can I test if a User is banned?
interaction.options.getString doesn't exist? 11 messages
warped vigil Hey there, the discord.js guide teaches how to get a String option. It mentions `interaction.options.getString(name)` fo...
auto complete 9 messages
night needle ```js async autocomplete(interaction) { const focusedOption = interaction.options.getFocused(true); let choices;...
change embed with id 3 messages
unreal stream i have created a database to store the id of the last embed but i want to edit it in a other event my questions is how t...
dms to bot not received 3 messages
tough stag ```js const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, Ga...
Events not triggered 23 messages
turbid ice I am writing a bot (with administrator's permissions) using discord.js written on TypeScript. It's main job is to listen...
how to make createReactionCollector work 12 messages
tough stag this is the code i have
How to make a function and pass *client* const in a parameter? 8 messages
weak kestrel Im making a slash command that needs *client* but it's not defined. I have been said that this is a good way to make thi...
How to create a message component interaction reply occur near the original message? 9 messages
elder lynx I want to have a 'Get Link' button which upon clicking replies with a URL. This URL message must only be visible to the ...
Is there a way to display a table 10 messages
tall mist Is there a way to display a table for users?