djs-questions

9202 threads · Page 154 of 185

channel.threads.fetchArchived not returning expected result 53 messages
devout mural I am trying to pull all archived private threads before a specific date and my query doesn't return the result that I am...
Slash Commands badge not showing on bot user profile 7 messages
vast cloud I've recently noticed that my bot doesn't have the slash commands badge on the bot user profile. My bot only uses slash ...
Message collector in slash commands 20 messages
Performance issues 5 messages
halcyon jolt So as far as I can remember djs consumes a lot of ram, resources which make it unusable to large bots and leaves the spa...
Crosspost fail 26 messages
void charm **Node version:** v18.14.2 **Discord.js version:** 14.7.1 My bot has administrator role. It can sends/read the original...
set custom property on a message before sending? 23 messages
cerulean bloom My bot will listen for a message and then respond if certain criteria are met. When the bot responds, I'd like to "tag" ...
this .setColor('#2f3136') has been added but the color is still not showing 6 messages
autumn prism .. this .setColor('#2f3136') has been added but the color is still not showing
Can't send embeds 8 messages
tiny zinc I have this code (screenshot) and when I run it does not work at all, just replies with the content without the embed I ...
Rest.put erroring "Missing Access[50001]" 10 messages
limpid hull So, I'm using Discord.js v14 and I stole some code from my other bot, but for some reason rest.put ain't working and I c...
Command Responses 25 messages
dusk fern Trying to make responses look tidier, so as not to spam messages, currently I have this: ```js async execute(interaction...
Registering slash commands 9 messages
native rune How can I register a slash command only in private messages from users who write to my bot? And yes, how can I delete th...
defined client as bot, but interaction.bot is undefined 3 messages
dusk fern So I have defined Client as "bot" in my index.js, and refer to it wherever needed without issue, until I come to Interac...
Supplied parameter is not a User nor a Role. 7 messages
autumn spruce yesterday without making any changes I just started to get the extra error (does it in create ticket and switch channel...
Please send me an index.js. 54 messages
proud pasture I asked an official for help with the installation, he kept throwing the site at me, I did not understand anything from ...
hello 17 messages
runic sapphire i have a couple things for one i was wondering how i can do multi guild banning and two i get this error
About awaitMessageComponent filter 8 messages
drifting forum Where i can see a args for filter like this page https://discord.js.org/#/docs/discord.js/main/typedef/CollectorFilter ?...
TypeError: Cannot destructure property 'id' of 'data' as it is undefined. 53 messages
placid sorrel trying to use a webhook
user ID from command 18 messages
nocturne plank How should I get the user ID from command runner
Check if guild member can use slash command. 5 messages
subtle cypress I want to send ephemeral reply message with listed only slash commands (commands mentions), that guild member can use, a...
CJS 1 messages
white hollow I'm just curious as to why the documentation shows CJS instead of ESM given that ESM is many years in shouldn't we light...
Welcome message for bot not sending 9 messages
tawny vapor Currently working on a welcome message for when people join my server. I have already set my code up and put the channel...
How many options can be placed within a field? 3 messages
knotty grotto How many options can be placed within a field? (`.addChoices`)
setPresence not working 44 messages
prime ermine I created a command to change the presence of my bot (and a separate command for status) and nothing seems to be working...
TypeError: Cannot read properties of undefined (reading 'cache") 78 messages
twin birch Hello, I want to create a bot that can also execute his commands by API calls, i have trouble with a simple 'sendMsg' fu...
Send silent messages 5 messages
turbid turret I want to send silent messages (@ silent as first word). But if i do that the message will start with @ silent instead o...
Get Conversations between a time interval from a channel. 7 messages
empty crescent I want to get text conversations between certain time interval in a channel. What will be the best idea to get the mess...
How to get the person who banned another ? v13.7 2 messages
signal notch i want to make log about someone getting banned with the "guildBanAdd" event and i dont know how to get the person who b...
Changing command options doesn't update autocomplete 2 messages
oblique shell I have a bt with some commands that take 3 arguments (for example /help [category] [subcategory]) when selecting a categ...
How to get list of allowed intents 8 messages
proven magnet Is there a djs method to get a list of all intents my bot is allowed to use?
can not edit or delete interactionResponse 4 messages
keen rampart i save my response to an object after replying like this ``` servers[interaction.guildId].playerInteraction = (await int...
How to properly display message content in context menu commands? 11 messages
rancid bay Yeah, I'm working on a report message context menu, and for some reason, the content in the response has <@ at the begin...
Setup 50 messages
proud pasture Can anyone help with the installation? I have some questions.
Last message BOT 5 messages
dawn hatch I should do that when the song ends embed gets deleted, I tried using the command channel.last.Message.delete() but with...
Retrieve the last message (reply to a specific user) the bot sent 9 messages
buoyant bramble Hello! I'm coding a personal ChatGPT bot for my guild, and one of the payload fields to sent to openai should contain th...
Gateway problems. 52 messages
slim osprey Hey can someone help me with my bot? Suddenly my bot started to spam "Error [ShardingReadyTimeout]: Shard 1's Client too...
How to get the nickname, I gave to a friend of mine? 2 messages
uneven estuary I'm looking for a way to get the nickname I can set for freinds. When I believe into the Discord API, the relationshop-o...
Reply to the command author on a 2nd message 2 messages
oblique shell Hello, I have a bot that sends the user a message with a button, and if the user who made the command clicks that button...
What type of component is this. 5 messages
crimson sparrow I cant find this on api..
ButtonInteraction component missing .setStyle method 5 messages
patent river why does my `ButtonInteraction.component` does not have `setStyle` method? ``` console.log(interact.component); interact...
NPM I ERLPACK 9 messages
Check if user is connected to the same channel as the client 4 messages
lofty gull I want to know the best solution for determining whether a guild member is connected to the same voice channel as my DJS...
Receiving Unsupported Error on Debian 11 VPS 7 messages
sturdy otter Full error provided. Any way around this?
998292157150535700
Can't get bot to send an audible alert in audio channel whenever a message is sent in a text channel 5 messages
elfin magnet I'm really not sure what is going on here. I can get the bot to come online, and then join the audio channel I'm in, and...
Checking if a channel is created by the client 39 messages
junior rover Hey! I need to check whether a channel is created by the client itself, is there a way to do this quickly? The method I ...
How to know if a user reacted to a specific message and assign a role 3 messages
unreal glade Hey guys, what's up, I'm trying to figure out how to tell if a user reacted to a specific message and assign a role to t...
Is it possible to convert text channel to thread and move to under forum? 3 messages
old patio title
Limiting gateway data to reduce traffic usage 62 messages
charred igloo So is it possible to do something to reduce bandwidth, my bot which currently uses presence intent has over 500gb monthl...
Reaction collector without time limit 21 messages
plain hamlet How can I let a bot collect reactions for a undefined time? Like in those reaction role things
How do I check if the author is a bot? 23 messages
leaden hazel If the author is a bot This is written like ```js if (author.id === client.user.id) ``` Is this right ?
Error making embed pagination 10 messages
tacit osprey Does anyone know hot could i fix this error? Im using djs14 with mongoose and I think its around this function but I do...