djs-questions

9202 threads · Page 167 of 185

I am trying to send a local image 9 messages
wicked linden What is wrong? `const attachment = new AttachmentBuilder("D:\Bot\Images\Picture.gif", {name: "Picture.gif"})` `.setIma...
Cannot read properties of undefined (reading 'send') 11 messages
young blaze I'm awaiting the ready event from my bot to send a message. Sadly that doesn't work. Any ideas? ``` (async () =>...
How to specify the path to the image from a folder on the computer in .setImage? 17 messages
wicked linden .setImage('D:\Pictures\Picture.gif') - not working
Sharing rate limits across clients 6 messages
static marsh Hello, is there any way to share rate limit data across clients with this library? I have separate shards of a bot hoste...
Activity presence to amount of guilds 2 messages
limpid robin How can I put the activity presence to the amount of guilds my bot is in? I tried client.guilds.cache.size but its not w...
Strict mode 2 messages
pearl lynx Is it recommended to use strict mode in discord.js?
presenceUpdate 2 messages
stable tide ```js //BIO client.on('presenceUpdate', async (oldPresence, newPresence) => { const role = newPresence.guild.roles.c...
Refreshing Slash Commands doesn't deletes commands in command list 10 messages
mortal pine I just deleted the command file in the file system and followed this: https://discordjs.guide/creating-your-bot/command-...
Multiple Select Role 43 messages
uncut haven Hey, does anyone know how to made a multiple select role because i don't know how i can do it (made a something automati...
Is it possible to use ES6 instead of ES5 for imports? 9 messages
ruby hull Trying to run a SvelteKit server along side my bot but SvelteKit uses ES6, so I was wondering if it is possible to make ...
Code not working properly in bigger servers 14 messages
merry fog So I ran this in a server with only 2 members and it worked perfectly fine. When I ran it in a server with a bit more me...
Get channel by id 9 messages
warped aspen Hi, im trying to get a channel by it's id but i get undefined
Stringselectmenu 1 messages
west iron Is it possible to use custom emojis in the stringselectmenu label?
messageDelete event not working 43 messages
mild finch I created the event messageDelete on my bot, but when I delete a message the event is not raised
Bot stops receiving Discord gateway events. 37 messages
forest wren This bot instance has been running for over a year with no issue. Twice recently it just stopped receiving events. It's ...
Get channel ID by the name 3 messages
slate whale How can I get the channel ID by the name? On const ticketChannelName I create a name for the channel and now I want to g...
Get the voice channel the bot is connected to 4 messages
warped aspen Hello, how can I get the id of the voice channel the bot is connected to?
Get the replied message of a commandInteraction 3 messages
karmic chasm If I use a slash command while replying to a message, how do I get that message from the interaction ?
although there is no problem, it does not work 3 messages
How to make a bot send a message to a specific channel 12 messages
orchid inlet Hello, the code for sending a message to a specific channel from the guide doesn't work alone ```js import {Client, Rou...
Sending message to a specific channel. 2 messages
lime wyvern An idea is that user sends a command into a channel, I save channel's id so that I can later send messages into that cha...
Seems that message#awaitMessageComponent in my code can't received any interaction respond? 10 messages
rough gyro I just update my discord.js to 14.7.1, but after update, I find out that message#awaitMessageComponents in my code can't...
Ignore dm 14 messages
half lagoon how to ignore private messages in event interactionCreate?
2+ Clients = API spam? 5 messages
tawdry solstice If I have 2 or more clients on a single IP, will this be considered API spam even though each client has a different tok...
another problem it was running just fine then i added a command and it now is not working? 6 messages
rocky socket all i did was add ping and try to make it say "pong" and all i got was ```.filter((file) => file.endswith(".js")); ...
DiscordAPIError[10062] help 2 messages
lament anvil DiscordAPIError[10062]: Unknown interaction at SequentialHandler.runRequest (C:\Users\law_b\Desktop\PokemonGame-Disc...
Role mention with embed 15 messages
wintry temple Do role mentions not work alongside embed messages? Not inside in the embed, outside: https://ilearner.dev/imgs/5rgfs.pn...
Getting the details of a message being replied to 11 messages
tranquil shadow If a user sends a message replying to a different message, how can I use Discord.JS to get the data (like content, usern...
deleting/hiding message within channel for specific user 7 messages
ashen sorrel Hey, just asking if there is a way for bot to hide/delete a message within a single channel from a specific user within ...
typescript issue with discordjs REST api 12 messages
lime chasm Heya, trying to do the following thing in typescript ```ts const rest = new REST({ version: '10' }).setToken( pr...
998292157150535700
Get bot server count for website 4 messages
deep adder Hello, i have a question, how I could recover the number of servers my bot was but without passed discord.js, it is then...
awaitreactions on message 14.3.0 7 messages
wise plover ```message.awaitReactions({ filter, maxEmojis: 4, maxUsers: 4, time: time1 * 1000 }) ``` why can i react 4 time with the...
get emoji with his id in 14.3.0 17 messages
wise plover `message.guild.emojis.cache.get(emojiA)` Can i do more easily than that ? I tried `client.emojis.resolve(emojiA)` and `c...
i.update() not working at collector.on('end') 23 messages
sleek shuttle No error output at the console. It was working well a day ago but not now : (
How does discord.js handle rate limiting? 5 messages
sharp sigil I'm building a bot that allows users to subscribe to reminders for certain in-game events that are on timers (roughly 30...
inviteCreate and inviteDelete events not fireing 2 messages
calm sun I do have all intents enabled, but I just don't get the event.
How do I get a copy of the Components used in a Message 16 messages
flint sequoia My goal is to disable a button after clicking on it. That is why I got an ButtonInteraction to work with. My idea was to...
My prefix is > how can I stop it from triggering when people do quote blocks? 25 messages
junior flint So I have a bot that's in one server, available prefixes are pretty limited and I've gone with `>` However every once in...
Error 32 messages
sharp patio Has anyone gotten this before? ```throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, metho...
checking if the user has a role 6 messages
silver sky Hello, I am trying to do a command in which it checks if the user has a role to do so i used ` if (userid.roles.has(*r...
Migrating message types 14 messages
shell bluff is "USER_PREMIUM_GUILD_SUBSCRIPTION" now `MessageType.GuildBoost`? what is "PINS_ADD"? assuming "CHANNEL_PINNED_MESSAGE...
Getting all messages from a Discord server 5 messages
supple pier I have a code that gets a collection of all messages from a specific discord channel. How do I fetch all channels of a s...
How do you add fields to an embed after it has been declared? 8 messages
hoary obsidian I'm trying to add items from an array to an embed as fields, but it seems like I can't add fields to it after it has bee...
How to display the total number of roles a user has? 11 messages
fervent hollow I am trying to *count* how many roles a certain user has within the server. I know how to *find and list* all the server...
Type issue when using SlashCommandBuilder options 9 messages
soft quartz Hello, I'm having issues when trying to add options to my commands using the SlashCommandBuilder. For some reason I get ...
Function.prototype.apply was called on undefined, which is a undefined and not a function 14 messages
floral plaza Im trying to create a guildMemberAdd event but i got these error when i try to ```javascript client.on(event.name, (...a...
How does role-add rate dynamic rate-limiter work? 2 messages
cloud torrent I want to add roles to numerous users (one role add and one role remove per user) (potentially 1000's). I know this will...
Is it possible to reply to an interaction given only an id and token 2 messages
wanton briar I have a socket providing incremental updates to my bot in a relatively short time span (<2 minutes) with the interactio...
Something fishy with await interaction.reply.. 151 messages
slow stirrup I currently have a bot on a cloud server and I am facing a strange issue that is completly stumping me. The bot will run...
DiscordAPIError[40005] Request entity too large 17 messages
tulip knoll I get: DiscordAPIError[40005] Request entity too large when I try to upload a file of size 7MB. How can I fix this?