djs-questions

13317 threads · Page 174 of 267

message on reaction add event v14.3.0 45 messages
wise plover ` client.rest.on(Events.MessageReactionAdd, async (reaction, user) => {` Hello, is anyone kn...
Reading .includes("discord.gg/xyz") on a user presence status 34 messages
uncut haven Hello, i want to check if the status of a member includes "discord.gg/x", but i can't read `.includes` on the `.state` (...
slash command not showing 21 messages
night musk iam using [email protected] i didn't code discord bot for year and more i have old project i took the code from it and ...
Can we get data of ... 18 messages
ember mantle Hello 👋🏻 I would like to know, can we get alt text from an image (if it is written)?
Passing data to modal 5 messages
wintry temple Hi, is there anyway to pass custom data to button builder? I would need to pass it some data acquired from previous inte...
how to use RoleSelectMenuBuilder? 5 messages
dire otter I just found out it existed haha, Too bad I don't know how to use it, but I found it very interesting!
Issue with intents 3 messages
Urgent Assistance Needed: Discord.js Intents Declaration 15 messages
wary mica I am in need of urgent assistance regarding the declaration of intents for my Discord bot. Despite extensive research an...
Problems installing discord.js when executing npm install discord.js. 16 messages
ornate rampart Log>> Unsupported URL Type "workspace:": workspace:^
Error when deploying commands 5 messages
weak kestrel ```js const { REST, Routes } = require('discord.js'); const { clientId, guildId, token } = require('./config.json'); con...
How can I know when a user has disconnected from a specific voice channel 4 messages
frank flame Havent found anything on the docs
Ticket system with a Select Menu 7 messages
bronze urchin Good evening, you know how to allow to select a menu but if the player does not have the right role, he cannot click on ...
Partial Guild Members pending flag 2 messages
I dont find anything wrong here but its not working! 16 messages
void heath does anyone have an idea, why this code is not working? ```js let storedMessages = []; client.on('message', async messa...
How can i edit embeds and components when collector is ended? 15 messages
select menu wont respond with a modal 133 messages
ionic dragon im trying to make the bot respond to select menu selections with a modal but it just keeps sending the same select menu
umm not sure if this is a bug or what 3 messages
Checking bot permissions in a channel 5 messages
snow zealot Do it with permissions.has()?
use other bot slash commands 7 messages
queen glen When I set up the application on Discord, I was able to let it use other bot's slash commands. How do I use this in Disc...
How to remove the color from embed? 6 messages
opaque oak How to remove the color from embed?
Create Emoji - TypeError [ReqResourceType]: The resource must be a string, Buffer or a valid 4 messages
undone stream Hi, how can the bot create a new emoji on the server, I keep getting `TypeError [ReqResourceType]: The resource must be...
What type does interaction have (Typescript) 6 messages
flint sequoia ```import { SlashCommandBuilder } from 'discord.js'; module.exports = { data: new SlashCommandBuilder() .setName(...
How to make my bot get a Channel ID? 3 messages
cinder knoll I want to make it so my bot can get the id of the channel that the command was sent. The only way I know of defining a c...
Handler 2 messages
rancid meteor How make Command Handler?
encode 64 3 messages
restive apex how to render an image that is in base64 in discord, the image that is in base64 is a qrcode
Getting RTT 11 messages
ornate rampart Totally new to this, how do I get the RTT of each users? I am developing a minigame that is time sensitive.
Embed with multiple Images 15 messages
rugged ginkgo Qjuh once said it's possible to have multiple images in the same Embed, but I haven't been successful in re-producing th...
How to check if a message exists? 3 messages
shell bluff I have an ID of a message that was posted at some point, when my bot starts I want to ensure that the message still exis...
Intents 3 messages
still dock What is the needed intents & perms for a discord advanced ticket bot ?
Buttons respond a certain number of times 8 messages
vital scarab If I send a slash command "set_voice" one time and press button, button works 1 time. If I send 2 or more time "set_voic...
Remove interaction from button collector 4 messages
slow stirrup How can I remove a button interaction from a button collector? I can't seem to get the dispose() to work. ```const butt...
Counting system 55 messages
fallen gulch Whenever I run my code the bot comes online but when I go to use my slash command I get the application did not respond...
Button not staying in Loading state 6 messages
gleaming python When I use the `ButtonInteraction#deferUpdate()` method, it triggers the loading state for the button for 1 second and r...
Why do I keep getting DiscordAPIError[40060]: Interaction has already been acknowledged. 6 messages
slim trellis I'm trying trying to create a basic ping command for my bot but I keep getting this error: ```js DiscordAPIError[40060]:...
Get variable to other file 3 messages
young blaze Hey, my code is the following: index.js ``` import { } from './events/myfile.js' let result = await fetch('API'); let ...
Register Slash command limit 27 messages
robust geyser Before I known 1day 200 commands can register Then.. that 200commands include modify or only for new commands?
bot not responding to messages 16 messages
gritty garnet bot does not respond although all events are normal
how to define an attachment in the EmbedBuilder.setImage() 10 messages
hollow osprey I have been looking for an answer in a while and my question is how to define the attachment in my case in the embed ima...
Creating button event 7 messages
unique lily so I use if (selected === 'first_option') { await interaction.reply({ embeds: [embedOptionOne], ephemeral: true...
manage slash commands and originals commands in the same time 8 messages
wise plover Hello, i have multiple commands which works fine with normal `?command`. I have now slash commands and my execute funct...
Nothing from terminal 7 messages
unkempt schooner I'm trying to get my bot to come back online. I got it to come on line last night, and when I tried again, nothing happe...
Interaction create not firing after exiting a modal 49 messages
silent parrot Attached code below. There are no errors being thrown.
Error: SyntaxError: Indentifier "options" has already been declared, how can i fix it? 8 messages
dusty sapphire v14.7.1 of dicord.js I uploaded a image of the script
Invites 4 messages
drowsy crescent Hey, is there some way to get the userid of the user that invited another user? Like: member.inviter.id? Member is defin...
EmbedBuilder .image not being shown on all devices? 3 messages
real arrow I'm trying to send an embed with an image in it (via EmbedBuilder.setImage), but the image preview only shows a placehol...
how to listen for button clicks after a slash command 8 messages
hearty dove const inviteButtonRow = new ActionRowBuilder() .addComponents( new ButtonBuilder() ...
How does one go about making such a thing like this? 10 messages
naive robin I'm trying so hard to figure out how they made a custom "typing" thing such a this... I can't seem to find the answer an...
How to delete slash commands? 38 messages
willow grove In my slash commands list, all my music bot commands are showing up, but its not running, how do I remove those until I ...
Editing Reply not working 13 messages
mortal pine So I want to edit the reply when the select menu was clicked, but I got a following error; `TypeError: reply.deleteReply...
TypeError: Cannot read properties of undefined (reading 'user') 22 messages
plush lichen Hi. Can someone tell me what's the problem here? :D