djs-questions

13317 threads · Page 72 of 267

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...
node @discordjs package
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...
deno
The code doesn't have a bug, but it doesn't work. 9 messages
@discordjs package
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...
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...
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?
@discordjs package
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 19 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...
node
DiscordAPIError[50006]: Cannot send an empty message 9 messages
prisma trout I'm trying to make a command that uses an API. When I execute this command, it says the application can't send empty mes...
node
I am trying to use this bot, but I get the following error. 10 messages
pure shale I am trying to use this bot: https://github.com/MitchTalmadge/discord-echobot However when I try to run the bot I get t...
node
hey i am trying to make a ticket system with a slash command for my bot and i have an error 3 messages
winter walrus my code is missing a required "data" or "execute" property.
node
Hey i got this error 7 messages
winter walrus ValidationError: Expected a string primitive
node
ModMail is Not Working 12 messages
candid cradle Please Help modmail is not working
problem with BASE_TYPE_REQUIRED 8 messages
digital sinew Hello, here's my code : ```const { ApplicationCommandOptionType, ChatInputCommandInteraction, EmbedBuilder, ButtonBuilde...
ButtonBuilder > TypeError: Cannot read properties of undefined (reading 'customId') 28 messages
plush lichen ## Part of `Index.js` ```js const { componentTogglerIds } = require('./commands/main/start-contract'); const buttonToggl...
node
how do i change from guild command registration to global command registration 2 messages
winter walrus my bot slash commands work in only one server and i want to change it to global i ve read the discord.js guide but i am ...
node
Is there a way to keep the references of chats, messages and collectors on discord.js with database 26 messages
Error with choices in slash commands 6 messages
heady pilot Error: ```js ExpectedConstraintError: Invalid string format at Object.run (C:\Users\4339u\Desktop\UNORP2.2\node_modu...
node
Help registering Slash commands 3 messages
heady pilot I need some help with Slash commands ```js DiscordAPIError[0]: 405: Method Not Allowed at handleErrors (C:\Users\43...
node
How do i send messages in a Forum Channel 17 messages
heady sand assuming i have the channel stored in the `channel` variable, how would i send a message to it? Any clue? I've scoured h...
TypeError: Cannot read properties of null (reading 'value') - [email protected] 58 messages
nova glacier I get the error spammed when I open the menu to select country. ```js module.exports = { name: 'list', descript...
Guys pls someone help me with this i am writing i wanna put slash commands to my bot but i cant 30 messages
winter walrus TypeError: Cannot read properties of undefined (reading 'cache') its discord.js v14 const guild = client.guild.cache...
node
When i try to /authkey or /wl i have this problem 91 messages
mint jungle When i try to /authkey or /wl i have this problem
Select dropdown 19 messages
solar veldt How would I go into adding a Select dropdown list into a slashcommand? With a list that is more than 25 long. I'm using ...
Audit log 2 messages
jaunty crescent is there a way to hide logs of the bot from audit log? for example "move member" or "channel create"
@discordjs/voice with @discordjs/next 4 messages
@discordjs package
.setThumbnail link not working. 9 messages
sick pendant I would like to use a local file as embed thumbnail, that is served by node-js express that is running alongside my bot....
Unknown interaction 3 messages
timid lion anyone know how can i fix this error ? ```cmd DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Users...
node
setRateLimitPerUser 7 messages
Value undefined after SQL database initiation 9 messages
hardy briar ```js const joinMessage = await interaction.channel.send({ embeds: [joinEmbed], components: [row] }); // Defined value ...
Uncaught DiscordjsError RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS. 5 messages
mint jungle Uncaught DiscordjsError RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS. at resolve (c:\Users\...
Channel user permissions 5 messages
trail schooner Does anyone knows what the problem is that I am currently having within a slash command file? I would like to add a pers...
node
How to add an interaction for the buttons added here 12 messages
ocean falcon This command file is in a separate folder ./commands/utility as taught in guide, how do I add an interaction to make but...
ExpectedValidatorError on showModal() 45 messages
misty geyser When attempting to respond to an interaction via interaction.showModal(), the following error appears: ```console Combin...
node
channel permissions 10 messages
sleek crypt how to set a permissions overwrite for every member ina specific channel
How do I get mentioned channels in a message? 2 messages
compact ocean Like this: "<#826569464610029568>" How do I extract that? Version: v14.14.1 Node version: v20.10.0