djs-questions

9202 threads · Page 70 of 185

Slash Command 2 messages
lusty sky How do i mention a slash command ?
Dynamic Amount of Message Reactions 7 messages
tiny radish I am creating a quiz command in my bot that reads information from an API I created. It formats the multiple choice ques...
AttachmentBuilder 1 messages
native wigeon Hello, I can't attach the person's logo. you can help me?
Modal submit problem 26 messages
rancid tartan look this is my collector, which collects message from a button ```js const msg = await thread.send({ conten...
1150878580193116250
Detect bot removed reaction and return in messageReactionRemove 10 messages
mystic wraith Node: 20.8.0 discordjs: 14.14.1 I think i'm losing my mind. I swear at one point the following was true: ```ts await re...
Fetching role members 4 messages
opal wind How would I go about doing this? I have tried fetching all the members of a guild and then fetching all the roles in sai...
Add "|" in channels' names, with template "icon | channel name" instead of "icon - channel name" 4 messages
vapid pebble I cannot add | in the channel name, however, I still saw other servers can do this, could anyone help me with this? Than...
Error Code I can't seem to figure out 18 messages
chilly vigil ```js DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Users\mattw\OneDrive\Desktop\super\node_module...
how would i go about fetching a user's custom status? 10 messages
glossy falcon don't know how this would be acheived
Question... 3 messages
tepid hamlet Hi, i can get user about me using djs?
Mark Post as Solved? 5 messages
bold pond I really like the "Mark post as solved' feature, I would generally like to achieve the same thing since I am using the F...
How can I reference a Forum Format Post? 4 messages
bold pond I am currently developing a bot to automatically delete forum posts for me, so I would like to know how to reference a f...
extract cookies from a website 2 messages
crude hedge I want to create a bot which automates some website functions, but the website requires a login and does not have a publ...
1150878580193116250
Thread Question 3 messages
long river So I have a command where a thread is opened by a bot via a command (/support), however I was wondering if it is possibl...
Getting error in every interaction 7 messages
jagged scarab I was opening my old bot that was working perfectly fine but every interaction gives me error without changing any thing...
Queue to prevent rate limit, but sometimes unreliable. Are there any alternatives or improvements? 4 messages
full rain Hello, I have written a bot that should make it possible to react to a message with embed for a certain time event and t...
1150878580193116250
Is possible to trigger an ephemeral message without setting "ephemeral: true"? 12 messages
lucid parrot I'm having some strange behaviours from my bot recently and i'm not having idea what is happening. Right now an user sen...
How would I go about getting the currently applied tags in a Forums channel? 4 messages
long river I tries this and kept getting `Failed to change thread tags: TypeError: Cannot read properties of undefined (reading 'fe...
What's the preferred way of accessing collections in a command file? 15 messages
obtuse marlin Currently I have something like this ```ts try { if (interaction.commandName === 'user') { await com...
How would I go about trying to create a discord.js bot to fetch the thread id's in a channel. 12 messages
pure shale How would I go about trying to create a discord.js bot to fetch the thread id's in a channel and output them either to t...
1150878580193116250
Question about makeCache and sweepers 18 messages
somber vessel Hi! I'm running a ticket bot which has transcripts, what would be the best settings for message cache? I would like to c...
Invalid number value 3 messages
quasi wolf Code: Error: Error retrieving guild stats: Invalid number value
Autocompletion in Slash commands 7 messages
heady pilot Auto ocmpletion code: ```js const D = require("discord.js") const fs = require("node:fs/promises") module.exports = { ...
1150878580193116250
Low Rate Limit ceiling? 11 messages
wise ridge I’ve started work on a basic Discord.js bot, and I’ve hit rate limits twice during the development workflow. I’m not doi...
Unable to delete message from DM 3 messages
heady sand ``` Error [ChannelNotCached]: Could not find the channel where this message came from in the cache! at Message.delet...
Keep track of commands users run, like a counter. 6 messages
patent nexus How would i collect the amount of times a user runs a command, and add it to like a collection where it can later be dis...
1150878580193116250 998292157150535700
DiscordAPIError[50035]: Invalid Form Body 1 messages
steep bronze I'm getting There was an error: DiscordAPIError[50035]: Invalid Form Body name[BASE_TYPE_REQUIRED]: This field is requ...
Assuming I have a link button, anyway to get the URL of the button? 3 messages
heady sand The title says it all. eg if i have a link button to https://google.com/ can i get the url later on by using interaction...
Issues with reading direct messages 11 messages
stone forge Hi, I'm actually developping my bot with discordJS. I'm trying to make an easy function for testing something : - the u...
Add math.sqrt in a calc command 19 messages
harsh hill .
Need help with buttons 50 messages
flint anvil how to send a message with a set of buttons (set 1) and upon clicking a button, the message gets edited with a new set o...
How to update about me? 5 messages
halcyon pond How to update the bot `about me` using the djs api? I'm referring that 'description' section which is available in the ...
Hosting on Deno Deploy 57 messages
urban rover I'm hosting my bot on `Deno Deploy` https://deno.com/deploy it's working great but after some time it goes offline. I t...
1150878890307358882
Slash Command registered but application cannot locate it when called 10 messages
icy timber Trying to update an older bot to use slash commands and I have run into an issue when responding to the client. ```JavaS...
Error [Object object] 2 messages
rapid timber In my bot discord i have a defaultrole system, he add the role when a guy join but i add a reason and the reason is Assi...
DiscordAPIError[50013]: Missing Permissions 1 messages
tulip sequoia I have a timeout command my bot has all the permissions it needs so I dont know why im getting this error https://sourc...
Slash command working but still replying with "The application did not respond" 62 messages
hybrid lodge the command works but before its sent it responds with "The application did not respond". ```js const { EmbedBuilder, ...
Hi i am currently trying to fetch json data from an api using slash commands but it keeps erroring 14 messages
hybrid lodge ```js const { EmbedBuilder, PermissionsBitField } = require("discord.js"); const { SlashCommandBuilder } = require("@dis...
Recommendations for good boilerplate/template projects 1 messages
wise ridge Hi! New to Discord.js, _very_ familiar with JavaScript/TypeScript. I was hoping to write a Discord bot for a private ser...
Collection problem 8 messages
ripe plover Is there any easy way to modify an array that is placed as a value in an Collection object?
998292157150535700
hey iam builduin a ticket system for my bot with slash command and deploy command buti hav an error 45 messages
winter walrus it works fine and it shows the slash command in discord but when i execute it it says this error Error opening ticket: ...
Dynamically adding buttons component to interaction 12 messages
solar veldt Good day were trying to add buttons to a interaction reply Create buttons dynamically - then add the array to the "new ...
Trying to uninstall yt-dlp 5 messages
obsidian shale I am trying to uninstall yt-dlp but it still gives me errors even when it is not in my packages files
How do I make subcommands? 7 messages
fossil obsidian So I am trying from to create two subcommands under info. One: info user and other: info server. I am not very sure on h...
Trying to uninstall yt-dlp 4 messages
obsidian shale I have been trying to uninstall yt-dlp from my bot but it just reinstall even tho it isn't in my packages files
application didn't respond error on /cmd 31 messages
changing image of posting user without webhook or alternatives that convey the same thing 11 messages
ebon spear I have a bot that I use to forward messages from github to discord (and vice versa but not relevant here) and im current...
Trying to add guild emoji to button getting error 3 messages
crimson prawn ```ValidationError > s.object(T) Expected the value to be an object, but received string instead Received: | '119...
client.user.setStatus not working 15 messages
pine bloom ```js const { Client, Intents } = require("discord.js"); const client = new Client({ partials: ["CHANNEL"], intents...
1150878580193116250
Need help with error 1 messages
full stone ```js async execute(interaction, profileData) { const { id } = interaction.user; const { tokens } = prof...