djs-questions

13317 threads · Page 189 of 267

Using DJS with Bun 2 messages
bun
Requiring a module 5 messages
shy dawn I am trying to have each command organized in a separate file but I try to require the index.js file and it never works....
How can I take the user's text into a variable after pressing the button? 2 messages
vocal heron help me ``` const collectorban = interaction.channel.createMessageComponentCollector({ componentType: Compo...
Autocomplete 47 messages
west iron Anyone knows how can i do this ? in my autocomplete im limited to 25 choices and if the user dont type anything theres j...
did i do something wrong? 5 messages
lethal spade why doesnt ot work when i do .username after it
Get audio from Channel. 3 messages
how to add a role from a user ID and a role ID 17 messages
craggy saddle I would like to assign role using user ID and role ID, but in my research I could only find the following example. ```js...
fetch automatically adds to cache? 3 messages
austere flame does `RoleManager#fetch`, after being resolved, add the roles to the cache automatically?
new Discord.Bitfield() 19 messages
sharp smelt I have no idea how that works, but I'm trying to give intents
Visible choices 2 messages
west iron How can i show limited ammount of choices at the same time?
Can't Register Slash Commands 3 messages
coral trench This might be the wrong place to ask this, let me know if it is, but... bear with me I was developing a my bot to use /s...
Collection 0.7.0 and Builders 0.16.0 Deprecated 10 messages
grizzled wolf I did `npm update` and it warns me that `@discordjs/[email protected]` and `@discordjs/[email protected]` are deprecated. I...
25 choices 28 messages
west iron is there a way to add more than 25 choices into an option?
Autocomplete not working 10 messages
west iron ```const { SlashCommandBuilder , ButtonBuilder , ButtonStyle , ActionRowBuilder , EmbedBuilder, messageLink, ModalBuilde...
Is it possible to send a Buffer canvas to embed.image.url? 9 messages
west gyro I'm trying to display an image into embed that is a canvas Buffer. Here's what my code looks like.
can't understand promises 2 messages
exotic summit I'm trying to find a way to iterate through my list of guild members, and get their display_names. ```js const { SlashCo...
undici causing random crashes 9 messages
viral star This is possibly caused by bad internet but my bot is randomly crashing with a RequestAbortedErrors, I post the error in...
@discordjs package
ReferenceError 50 messages
modern oyster So I got this multi-guilded welcome system and I wanted to add a custom message so everyone could use different welcome ...
Interaction type not defined 13 messages
west iron ReferenceError: InteractionType is not defined at Object.execute (C:\Users\luizs\Documents\Discord Bot\Events\Intera...
8MiB limit is not really 8MiB? 24 messages
Having issues with intents 8 messages
iron python How do i layout intents? This clearly doesn't work but idk what does (im new to discord.js) ```const Discord = require('...
Hi, i have a question 2 messages
coarse wasp I would like to ask you how can i do somethimg like that ?
REST | [10062] Unknown Interaction 36 messages
bitter imp Using following code for some reason seems to keep failing: ```ts try { const reply = await rest.post( Rout...
@discordjs package
How to edit all server categories permissions 6 messages
proper compass ```js interaction.guild.channels.cache.forEach(channel => { //Get each channel if (channel.type === "categor...
DiscordAPIError Invalid Form Bodyrecipient_id Value id is not snowflake. 44 messages
amber pond here's my index.js ```let discord = require('discord.js') let bot = new discord.Client({ intents: [discord.Intents.FLAGS...
How to get User ID with using SelectMenu 5 messages
patent dragon I am trying to get the ID of the user who executed the slash command using the SelectMenu present on the SlashCommand
Passing null in a textInput value property 4 messages
chilly igloo I am trying to pass in null for the TextInput setValue() method, but it's not working. Af far as I know tho, you should ...
How to show emojis as part of StringSelectMenu? 2 messages
bright tartan I've been trying to get emojis to appear in my select menu, and my bot keeps crashing due to invalid snowflake id. I'm ...
Discord.js + OAuth2 3 messages
merry stream Trying to make a discord bot slash command to send a Oauth2 code to see user connections. Having trouble figuring out i...
Getting the presence from user 6 messages
fleet marsh Hello! I've been trying to make a bot that gets my current Discord status (whether I'm online or offline) to show in my ...
How can I send an embed with Discord.JS Rest 4 messages
wicked sierra Hello, as you can see from the title I'm trying to send an embed with discord.js/rest. So far I haven't had any luck. I'...
New To v14, Code Not Working 15 messages
winter zephyr Hi! I used to make bots when v12 was out, but I got busy and now I have decided to get back into it. I am currently foll...
Reaction Does Something 9 messages
jagged flame Having trouble finding out how to know when a user reacts to a specific message and then just output to the console some...
Anyone know a FREE Hosting Site that's always-on? (keeps apps going 24-7) 2 messages
vocal galleon I've yet to find a free platform for keeping my bot online 24/7, they all either have only like a 30 day free trial or m...
Not a singlecommand working 44 messages
west iron I got over 10 commands and they were working perfectly , but then they stopped working after i started using mongodb , ...
reason canvass.closePath is not a function 3 messages
light lake I wanted to create a welcome canvas but it saying reason canvass.closePath is not a function but why?
Timeout Command Not Working 4 messages
shut jacinth When I call my timeout command I get an exception for TypeError ```ts export function callback(interaction: Interaction...
Get Bots Color 3 messages
coral trench Hallo! The last time I used discord.js, you could use `interaction.guild.me.displayHexColor` to get the bots color. This...
advanced auto complete aearch 4 messages
scarlet sinew How can I search an array of objects but for multiple fields. Name, description, and other properties in the array. Will...
Cannot read properties of undefined (reading 'guild') 6 messages
ancient musk hey, i'm quite new to the discord api so i'm not familiar with things like this. basically, i want to make a command tha...
DM messages not triggering events consistently 7 messages
supple fern I am getting my `messageCreate` & `messageUpdate` event correctly when the message is made in a guild, but in DM it does...
Function returns undefined? 6 messages
lofty topaz Code: ```js client.on('interactionCreate', async (interaction) => { if (interaction.isCommand()) { const { command...
How to return channel name given ID 15 messages
nova sorrel I'm trying to write a script that displays chat messages in a server's text channel, but it's just sending back the chan...
Bot that records audio in voice chat 2 messages
plain willow I am looking to build that records all voice from a voice chat. I am curious what the best APIs to use this are using th...
ReferenceError client is not defined 5 messages
amber pond ```module.exports.run = async (discord, bot, message, args, p) => { client.users.send('id', 'content'); } modu...
TypeError Cannot read properties of undefined (reading 'FLAGS') 8 messages
amber pond here's my code ```let discord = require('discord.js') let bot = new discord.Client({ intents: [discord.Intents.FLAGS.GUI...
Webhook help? 20 messages
shrewd hinge ```js const { WebhookClient } = require('discord.js'); const webhookClient = new WebhookClient('ata','at...
Send a const in a code block 5 messages
analog mango Need to send a constant inside a code block ```js const number = 5; await interaction.channel.send("```{number}```") ```...
Make a simple bot [Beginner] 10 messages
tame belfry Hey! I just switched from `discord.py` to `discord.js` I'm trying to learn the basics, but I can't manage to make it wo...
[solved] Get member count while filtering out bots 17 messages
exotic summit ```js const memberCount = interaction.guild.members.filter(member => !member.user.bot).size; ```this apparently isn't a ...