djs-questions

9202 threads · Page 56 of 185

pls help fix error 17 messages
nimble relic ``` D:\mercury\discordBotv13test\node_modules\discord.js\src\client\Client.js:548 throw new TypeError('CLIENT_MISS...
interaction.client.commands 138 messages
prime nebula How do i access to commands while interaction.client.commands doesn't exist?
Ways to get component input from another script? 4 messages
honest quarry For my bot to work correctly with what I have going on, I need the "selectedMember" input (from a user select menu) to b...
1150878580193116250
Trying to get user input for a Wordle game (interaction.channel is null) 21 messages
main panther Hi, I'm trying to create a slashcommand which takes in user input as guesses and compares it against a random word. I'm ...
embed description 6 messages
proven drum Why is the that when the embed is being sent, it gives the error of invalid body form, embeds[0].description[BASE_TYPE_R...
(v13) Target not connected to voice 4 messages
clear mortar Our bot is not able to correctly move certain members. Even though they are connected to a channel the bot has acces to,...
add reaction to a reply message 5 messages
vivid jacinth ```javascript console.log("Hello world!") ``` i'm trying to add a reaction to the replying message at a slash command Co...
Mapping command data to an ApplicationCommand 46 messages
thick comet Hi, I'm trying to make a way to recognize if there's an ApplicationCommand that matches (exactly) the data from a SlashC...
1150878580193116250
How to get clean text without markdown markup? 33 messages
sterile kiln Hello. For my bot I need to retrieve text after it is rendered with markdown. The problem is that I need to take into ac...
1150878580193116250
Error with commands 4 messages
dusty bluff Hey, here is my code: const { ApplicationCommandOptionType, PermissionFlagsBits, } = require('discord.js'); ...
1150878580193116250
MongoDB Space requirements 8 messages
azure nacelle Hey, i’m making a new Global rpg bot, with avatar theme. I saving a lot of things, like items, xp, levels, pet xp+level...
MongoDB adding to same profile repeatedly 2 messages
remote zinc ```js const { Client, Message } = require('discord.js'); const calculateLevelXp = require('./calculateLevelXp'); const U...
browser-compatible package 7 messages
red whale is there a way to make a browser-compatible copy of discord.js? i think djs used to use webpack to do so but im not sure...
998292157150535700
Is it possible to keep message components active in a loop? How do big bots handle timed out buttons 8 messages
honest quarry Let's say I want these button components (moderation actions) to be available as long as they can be, is this possible w...
1150878580193116250
premium system 18 messages
hushed pond Hello, I’m curios of how people make there subscription based discord bots like do they do it via the bots code or by th...
Interaction Create and Button Error 22 messages
arctic edge Terminal: ``` No command matching buttons was found. Error executing buttons TypeError: Cannot read properties of undef...
Unknown Issue with some Commands 44 messages
rare coral Hello, I have an issue with some commands, they cause the error in the screenshot. only a few new commands are affected....
1150878580193116250
slash command badge 11 messages
royal oriole Helo my bot does't have the badge for slash commande but i have 0 error :c
CollectorMessage 14 messages
valid dawn Hello, I don't understand why my collector isn't working. If someone could help me that would be great!
1150878580193116250
Fetch a message by using the url 8 messages
jade vector I know we can get a message with channel and message ID, but maybe it exists a methods to get from url directly, instead...
1150878580193116250
ChatInputCommandInteraction options problem 11 messages
steady wagon Hi, I got little type related problem with getting the `ChatInputCommandInteraction` options. The problem appeared when ...
chalk issue 2 messages
soft galleon how do i fix this
Please help me with clustering 3 messages
rugged moss What should I do with the shard list?
1150878580193116250
Nested collector for button interaction in slash command 2 messages
last veldt Hello! I currently have a slash command that creates a thread in another channel and posts a message with 3 buttons. One...
Do sweepers invalidate references to the swept object? 4 messages
balmy flame For instance, if my sweeper setup is ```ts { GuildMemberManager: { maxSize: 200, keepOverLimit: (member) => me...
1150878580193116250
Change a single button component detail (such as style) using update or something similar 25 messages
honest quarry I want to change a button's text and style upon an interaction submission. How can I do this?
1150878580193116250
Missing required "data" or "execute" property 3 messages
stable stag Hello.ts ```ts import { SlashCommandBuilder, type CommandInteraction } from "discord.js"; export default { data: ne...
Just updated, confused about prefix commands 10 messages
dusky locust I just updated discord.js, and I don't know how it works now but I skimmed through the guide and only found information ...
1150878580193116250
Cannot register commands globally 9 messages
crisp bone I am trying to register my slash commands to every server that my bot is in, but for some reason I can't. This code work...
Error while deleting interaction message 4 messages
icy owl so i am having an error while deleting an interaction message with a button on it. the message actually gets deleted but...
Comparing commands 15 messages
normal forge Rather than setting all commands when I change one command, I am looking at designing a system that fetches the commands...
second .update function erroring due to interaction already "replying" 12 messages
honest quarry I'm sorry if this is a common issue asked, I just need an answer as to why I cannot update the initial reply's embed twi...
Check if Webhook Exists 6 messages
atomic nacelle Hi, I have webhook ID and Token but want to check if that webhook exists or not, I tried to use fetch() but it didn't ...
I need to get a message id 3 messages
idle snow I have to get the id of a message with embed of which I have to get the message id at the moment, I used interaction.id ...
issue when i use messageCreate 1 messages
queen belfry i try also when i send to print and it give me nothing the function not work and use the last version
guild.voiceStates.cache force update? 31 messages
shadow furnace When trying to get all users in a voicechannel, they are still in the cache after leaving. Is it possible to get an accu...
Discord API error [50035] : invalid form body 40 messages
naive moon heres the code of slash command ```js // Slash const slashcommands = []; readdirSync("./src/commands/slash").forEach(as...
No presence 5 messages
inland geode Does anyone know what the presence of activity is for the Bot to appear without any? That is, there is playing, idle, d...
1150878580193116250
Error: Expected token to be set for this request, but none was present 64 messages
rugged moss I'm not sure why this is happening
1150878580193116250
Bug With difference() Method in Collections 8 messages
coral horizon Hi, if I am understanding the documentation correctly, there appears to be a bug with the [difference()](<https://discor...
1150878580193116250
Using a User Select Menu without it returning an error? 8 messages
honest quarry I have a file for this command "report" and a file in an events folder for the "interactionCreate" event. What is the b...
Modal not appearing after user is selected from UserSelectMenu 14 messages
honest quarry How would I get a module to be created after a member is selected from a user select menu? I think my main issue not be...
Get member from user select menu 4 messages
honest quarry I have searched and cannot find my answer. I want to get the member selected from the user select menu.
Server available is false most of the time. 3 messages
shadow furnace I get available == false about 4/5 times when doing this request. ```JavaScript function getServers(client) { retur...
1150878580193116250
What Discord.js version works on 16.9.1 3 messages
clear mortar Hi! I'm trying to make a Discord bot, which is going be hosted by a FiveM server. Since the latest FiveM Node.js version...
1150878580193116250
How to add emoji in modal? 8 messages
delicate tree How to add emoji in modal. Like we can be able to select emoji but in modal
How to access older posts in a forum channel? 5 messages
neat fractal Here is my current code: ```js async function countNewGallery(client) { const galleryForum = (await (await client.gu...
Making a /command 6 messages
dusty bluff Hi, how would I go about making a command where any .js file in the folder /commands gets registered, and how do I regis...
1150878580193116250
TypeError: Cannot read properties of undefined (reading 'members') 39 messages
torpid holly ```js const guild = container.client.guilds.cache.get(event.guild_id); const member = await guild.members.fetch(event.au...
is this bot code uptodate with discord.js 14 20 messages
violet sky i found a updated code for a bot that schedule lock and unlock for channel i was wondering if its uptodate cause the bot...