djs-questions

9202 threads · Page 160 of 185

Members in cache 3 messages
lofty ether For how long will d.js keep users in the cache memory? if I fetch all the members when starting the bot, will they remai...
allowedMentions 44 messages
mellow frigate ```js const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntent...
TypeError: Cannot read properties of undefined (reading 'on') 7 messages
errant furnace ```js const { SlashCommandBuilder } = require('discord.js'); const { EmbedBuilder } = require('discord.js'); const { rol...
Select menu option emoji 15 messages
steep umbra Hi there, so I have this StringSelectMenuOptionBuilder which the options are made based on the role data stored in a dat...
Return Embed error 10 messages
modern merlin ```js const embed = new EmbedBuilder() .setTitle('Weekly Champion rotation !') .setColo...
need help setting up a bot correctly (where the code is in-line with itself) 2 messages
radiant geode im sure you can probably tell i know just about *nothing* about coding or JS from what im about to say. im aware im expe...
client missing intents 4 messages
tropic pier Do I need to enable intents in dev portal because I keep getting client missing intents
The `GuildBan.reason` dont work for me (v13.7) 3 messages
signal notch The .reason in the embed log "undefined"
Using djs types globally 10 messages
fierce fjord I can use the djs types globally on typescript? i tried: ```json // tsconfig "typeRoots": [ "node_modules/@types",...
DiscordAPIError: Unknwon interaction 2 messages
atomic hull How can i fix it?
Reload Commands (command) 3 messages
little temple I have the following which seems to work when the app loads up, no specific command passed through. ```js const { Colle...
discord.js v14 bot keeps on going offline, but still partially works? 13 messages
cyan bough Hello! My Discord bot keeps on going offline after a few hours, which has been a problem for about a month now. After ...
Apps dropdown on right click in some servers 5 messages
south forum How do I use this?
[Solved] guildMemberUpdate event only firing after second nickname change 17 messages
oak vigil I'm trying to detect when someone changes their nickname. ```js const Discord = require('discord.js') const Client = new...
Problems with setting command permissions using bearer token 7 messages
quasi latch I'm having troubles with setting command permissions using a bearer token. On my website, there's an authorisation syste...
Get slash command reference 4 messages
supple bane Good morning, I would like to replace in my command the option "message id" by having it be taken by referring the comma...
I don’t even know what’s wrong 54 messages
radiant sundial Please ping me Ty :)
Get slash command options from string select menu interaction. 5 messages
smoky pier I have a slash command with a channel option. This slash command creates a string select menu and adds it to the reply o...
Guild's member by id 46 messages
random vine ```javascript const guild = client.guilds.fetch("####"); console.log(guild.members.cache.get(id)); ``` I can get tha...
RangeError: URL and custom id are mutually exclusive 8 messages
random vine ```javascript const row = new ActionRowBuilder() .addComponents( new ButtonBuilder() ...
Can I get user ip address? 7 messages
random vine I just want is there a way Cause I want to check if that user is not a second account 🙂 or the other way?
How can i delete messages from specific channels i select their ids? 17 messages
leaden hazel How can i delete messages from specific channels i select their ids?
Get subCommand value 3 messages
random vine ```javascript .addSubcommandGroup((group) => group .setName(`증가`) .setDescription(`...
MODAL CLOSE 3 messages
edgy mortar Is it possible to close modal through the code if you run out of time?
Collector received no interactions before ending with reason: time 10 messages
edgy mortar How to handle modal interaction waiting so it doesnt crash the bot if runs out of time
Getting reactions on message 18 messages
frigid sage I'm having trouble getting my code to recognize when an emoji is being added to a post made by a certain user. It doesn...
message collector content empty 6 messages
edgy mortar Collector always shows content: "" EMPTY regardless of what I enter
Error - Whats the problem? 3 messages
soft falcon C:\Users\khorshidrayane\Bot\node_modules\discord.js\src\client\Client.js:489 throw new DiscordjsTypeError(ErrorCod...
No string appearing on /ping 29 messages
limpid hull Hello guys, so I was trying to make a bot for sending a role list message that doesn't ping everyone, and I wanted to st...
shard seems to go down after being launched 133 messages
amber needle Hi all, I'll post shard manager below but there's no error in console, it just looks like this. The shards spawn success...
Using embeds to emulate a table 5 messages
orchid pollen I have a feature that lists channels, who was the last to send a message in them, and the time that message was sent. Gi...
force fetch user using their tag (username#0001) 13 messages
latent owl is there anyway to force fetch a user using their tag instead of searching in the cache?
Speed up the Bot response time. 7 messages
regal atlas Hi, i'm trying to increase my bot speed to do all commands and things faster. There is any way to do it?
"Feature is not a function" Error 7 messages
cinder flicker Hello, I'm trying to get my bot up and running again after applying a few changes to the code. After running "node deplo...
UND_ERR_ABORTED when loading client 1 messages
north swan I have a bot we recently updated to v14. I don't think the update to v14 was the issue, but I'll explain in more detail ...
Is it possible to create a modal collector for a context menu interaction? 3 messages
amber dawn Title; I'm trying to have a modal pop up upon choosing a context option in a user or message, while retaining the inform...
Why am i getting null type, details? How should i know witch intent or partials my projects miss? 11 messages
warm heart const Client = new Discord.Client({ intents: [ Discord.GatewayIntentBits.GuildPresences, Discord.Gat...
Connections 2 messages
final imp is there any guide that helps me to connect my bot to my own site to have linked roles?
Discord giveaways get channel 1 messages
distant ravine Hello, how can I get a channel from Modals so that the discord-giveaways module can make a contest on the channel on whi...
Is Firebase and Google Cloud good for hosting ? 10 messages
half escarp Hello! I just wanna know if firebase or google cloud is good for hosting by discord bot and if so, what should I use ? (...
Fecth a user to edit a permission 24 messages
regal atlas I can figure it
Interation message is deleted or not? 2 messages
potent pier How can I check that Bot's interation message is deleted or not.
how to create discord.js docs bot 5 messages
inland swift i need create bot like <@348607796335607817> but on russian, what do i need to do this?
Get All member in guild 10 messages
random vine How can I get All member in guild? I only know to get one member in guild.
How to create embeds with multiple pages? 2 messages
granite pawn I have made a player shop system, but the problem is that, when there are more than five listings, the embed is too big,...
how to create economy bot 5 messages
candid hill In this bot there should be adding money and removing money like wallet can I get help for code
CombinedPropertyError: Received one or more errors 1 messages
random vine I'm trying to get the value from mysql (That yellow log is that value) ```javascript connection.getConnection(...
async message reply error 50006 33 messages
graceful bone Hi, How can I make the message.reply(...wait for response...) ? client.on(Events.MessageCreate, async msg => { i...
EmbedBuilder() Image Sending 13 messages
queen crescent Can someone help me w/ sending an image in an embed? I've checked the docs, unsure why it won't work. The image exists...
How can I enable Internal sharding? 3 messages
dark wagon My bot needs shards, so I changed my code ```const client = new Client({shards:'auto'});``` but it still returns error...