djs-questions

13317 threads · Page 71 of 267

Bot permissions 31 messages
urban rover How do i enable these permissions?
Discord
interaction works on and off 6 messages
sacred dock Alright, I'm wondering if discord has some sort of rate limit when you testing commands, because it started to refuse so...
Moderation Logging System 6 messages
south thicket Hi, what's the best way to do a moderation logging system ?
collector problems and error 2 messages
rancid tartan code:- ```js const row = new ActionRowBuilder<ButtonBuilder>().addComponents(bttn1, bttn2); con...
node
Problem with stats.js 7 messages
unreal jasper So I'm trying to update this old stats command that I had. I'm trying to send a huge embed which requires me to defer th...
mysql2 prepared statement 3 messages
split cove I wanted to ask you which way is the best for prepared statement in mysql2 First: ```js try { const [rows] = aw...
setColor 5 messages
sleek crypt getting this error when doing .setColor() for an embed { "errors": [ { "name": "Error", "validator":...
Automatically deleting and recreating channels every 5 seconds 9 messages
spark orbit I'm having trouble getting this to work for some reason: ```js const { Client, Intents, GatewayIntentBits } = require('...
paginations 10 messages
pseudo lily I've made paginations and they use collectors. Is there a way of making a paginations without them? So whenever the bot ...
Error 7 messages
lime dragon node:events:491 throw er; // Unhandled 'error' event ^ DiscordAPIError[10007]: Unknown Member at handleE...
rate limit information 30 messages
formal surge Is there some way to hook into the rate limit information that DJS evalueates so that the application can also handle so...
How can i add a button to my embed (/verify slash command) 3 messages
node
interaction deferreply 11 messages
junior widget i used interaction.deferReply but console tells me haven't ```const { SlashCommandBuilder, PermissionFlagsBits, EmbedBu...
Slash command setting not working 20 messages
half apex Trying to set slash commands for my bot and I'm not getting any errors, but my slash commands are not being updated prop...
paypal rest api 6 messages
signal sky does anyone here know or have used the paypal rest api and can help me out with something? apparently, everything in san...
Initial DM with new Bot via Link 23 messages
golden galleon Is there a way to DM a new Discord Bot via a link or searching the client ID from the discord application? I'd like to b...
Setting permission overwrite value to null. 13 messages
latent agate Running into an odd issue, simply put: ```js vc.permissionOverwrites.edit(interaction.guild.id, {Connect: null,}); ``` ...
Cannot read properties of null 9 messages
outer ferry Hi, I am experiencing the following problem when I want to get the status of a server member. Why is it always null? ```...
Code not working 15 messages
hasty surge ```js const { REST, Routes } = require('discord.js'); const BotID = "1172706429157773443"; const token = process.env.For...
Attachment not being sent 13 messages
proven drum I have been trying to send a attachment of some backup data in one of the channels, however every time it sends the mess...
Problem with found user in specific guild 26 messages
lime dragon I cant find and add role user in specific guild. Here is my code: ``` const main_guild = interaction.cli...
ffmpeg errors 20 messages
near shale ```node:events:492 throw er; // Unhandled 'error' event ^ Error: spawn ffmpeg EAGAIN at ChildProcess._h...
Make a function to send message to a channel 13 messages
vestal river How to make a function `sendMessage(msg)` to send message to a channel?
bun
Attempting to fetch users custom status! 16 messages
glossy falcon i have some code how ever it errors out!
Collection Reaction not working. 37 messages
hard lintel I've been messing with this for hours and searching all the same stuff It's just not working for my so no idea what I'm ...
@discordjs package
Making commands customizable by the guild members 14 messages
eager rune Hello! I've seen quite a few bots with the option to let guild members create their own custom commands (like YAGPDB and...
node @discordjs package
Slash Command 2 messages
lusty sky How do i mention a slash command ?
Dynamic Amount of Message Reactions 8 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...
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...
node
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...
node
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...
node
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...
node
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 = { ...
node
Low Rate Limit ceiling? 12 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...