djs-questions

13317 threads · Page 30 of 267

Why can't I click to view the user profile? 6 messages
cobalt plinth - **My code**: ```javascript module.exports = async function welcomeMember(member) { try { const fetchedMemb...
node
I need help to make the messages personal in a Discord channel for newcome 3 messages
lusty pendant I am facing an issue where I am unable to send a personal message to new users on my Discord server. I want the message ...
value of autocomplete gets lost after switching to other channel and back 6 messages
dusty wadi I have encountered an issue where the value of my autoselect gets lost in the execute method after i switch to another c...
node
How do add a user to a thread silently? 32 messages
tidal hinge My discord bot currently adds people to a thread like this: ```ts await threadChannel.members.add(userID); ``` But this ...
@discordjs package
Typescript Error 'typeof Client' incorrectly extends base class 29 messages
oblique prawn ``` Node v20.16.0 djs v14.16.3 TS v5.6.3 ``` Hi! Recently updated some packages and started running into this ts build ...
Sharding questions. 36 messages
honest quarry Hi. I am building a Discord bot which I can anticipate will eventually be in more than 2500 guilds pretty quick. I hav...
deno @discordjs package
How to respond negatively to an autocomplete interaction? 2 messages
cunning elbow Discord's documentation really doesn't make this clear unless I'm missing something... Should I `interaction.respond()`...
node
How to check whether a user can be DMed? 9 messages
cunning elbow See title. The best I can figure out is actually trying to send a DM, but by the point I'm doing that there's nothing I ...
node
Broken button handler: "interaction.isButton is not a function" 11 messages
rough nacelle Discord.js npm version: 14.16.3 Node.js version: 20.9.0 Since yesterday I cant handle any interaction events where I ch...
New commands only appear after completely removing and re-adding bot from servers 4 messages
velvet dew This is my deploy-commands.js: `const { REST, Routes } = require('discord.js'); const { clientId, token } = require('./c...
User install command emojis error 14 messages
minor urchin so basically I made a user install command and I added emojis to the embed, they're not discord emojis, and they are not...
node
Simple question: Is Discord on-boarding verification safer than a Discord Bot? 13 messages
rotund iris Hi. Should I use Discord on-boarding system to let users verify or should i use a discord bot?
deferReply and reply 15 messages
minor urchin can I not have deferReply and instead of doing followUp I just do reply when using slash commands
node
How to delete reply of an interaction that caused my interaction after 3 seconds? 44 messages
oak vigil I have a message with a button, when that button is clicked it sends another ephemeral message with another button. How ...
Missing Access Error when updating Guild Features 31 messages
hard monolith I want to update `GuildFeature.InvitesDisabled` I tried this: ```js await interaction.guild.edit({ features: [ ...
node
Session WS 68 messages
ashen egret https://sourceb.in/ryDYsmAgUw
node @discordjs package
DiscordAPIError[50035]: Invalid Form Body0[AUTO_MODERATION_MAX_RULES_OF_TYPE_EXCEEDED]: Maximum num 14 messages
proper forge Hello, when I activate the rule it works perfectly, when I deactivate it the same, but when I activate it again this err...
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE 18 messages
verbal meteor I'm used to the old days of just doing commands with text in the chat !commands for example. Slash commands and such are...
AudioPlayer goes from buffering -> playing -> idle and warns that resource is not playable 3 messages
Datastores 4 messages
flat sorrel what's the most recommended way for a datastore in a discord bot?
Learning sources 3 messages
shut bridge Can anyone tell me sources from which I can learn Discord js and can make a bot . Coz i want to learn and also code a b...
How to automatically set status? 7 messages
broken reef As in, when I first setup discord.js, it would make my bots status "online", when the code was running, and "offline" wh...
how to remove watch button from streams and put in your discord rpc buttons for ur discord bot? 88 messages
modern flume how to remove watch button from streams and put in your discord rpc buttons for ur discord bot? i dont get it
How to rename a channel when bot goes offline? 8 messages
broken reef Here is what I did: ```js function updateChannelName(newChannelName) { const canal = client.channels.cache.get('129...
Trying to create a transcript 5 messages
tidal wadi I use `discord-html-transcripts` to try to get a transcript of the current channel sent to a different one. Image shows...
node
Registering Command 7 messages
tulip yoke I'm working on my own discord bot for the first time and i got it to where it can go online and so i made a command and ...
how do i access the context menu targetid post-modal submission? 9 messages
jade blaze how do i access the context menu targetid post-modal submission? including a textfield
How can I get an array of all the posts in a forum? 36 messages
burnt hollow Hey there, I looked at the documentation but couldn't find anything regarding forum channels. I want to create a Slash C...
Activity isn`t showing 9 messages
earnest glade I`m using ```js client.user.setActivity('Visit our site!', { type: 'WATCHING', url: 'https://adwinstore.com' }); ``` to...
RPC
Is there a way to save deleted messages and use them in transcript? 19 messages
earnest glade ```js const fs = require('fs'); const path = require('path'); async function generateTranscript(channel) { const me...
node
Log error 17 messages
earnest glade I`m trying to log new ticket creation by using this code
node
bot's activity status 3 messages
dusky oyster can someone enlighten me on how do I remove bot's status?
how can i do Image coordinates in canvas image? 2 messages
queen oar how can i do Image coordinates in canvas image?
How to handle HTTP errors? 32 messages
pure vapor https://discordjs.guide/popular-topics/errors I've read this and still don't know how to properly handle HTTP errors. I...
emoji undefined 40 messages
fallow geyser i cant use my client emojis its showing undefined
Automod triggering twice 43 messages
torpid holly I made a Automod system, which relies on Discord's built-in automod, however, I got a very weird issue, the link automod...
Is it possible to change the profile picture and name for a single message without using a webhook? 3 messages
vagrant coyote "Is it possible to change the profile picture and name for a single message without using a webhook? I want to send a m...
node
Bot command listing on profile 30 messages
dreamy shoal ```js const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v10'); module.exports ...
node
How can i get ONLY the message from 1 person in a collector 6 messages
flat sorrel how can i get ONLY the message from 1 person (for example the author of the interaction) in a collector?
permissionOverwrites on a new channel 25 messages
flat sorrel so i was creating a ticket system, and when a ticket is made, a channel is made based by the ticket. the problem is: wh...
node
I have an error but the message is sent 6 messages
harsh hill My error ```(node:4332) DeprecationWarning: BaseInteraction#isSelectMenu() is deprecated. Use BaseInteraction#isStringS...
node
Is fetching all threads safe? 4 messages
normal forge I am using private threads as a ticketing system. We have roughly 300 open threads. I currently fetch all the threads o...
bun
How do i 'resolve' a TextChannel sendTyping 7 messages
frank flame without sending a message maybe? Wanting to know if it's possible
Get user who deleted a message 7 messages
green pilot On the messageDelete event, is there any way to get the user who deleted the message? I'm trying with audit logs but its...
Inviting bot does not work 4 messages
azure narwhal Im inviting my vot to the server, its saying success on the discord side, but the bot is not appearing in the server (tr...
Command Handling With TypeScript 11 messages
opal geyser Hello, I'm having trouble setting up command handling with TypeScript. I'm trying to follow [the official guide](<https:...
node @discordjs package
properties of reset_after is undefined 27 messages
earnest grail My application has been running smoothly around 2 years and suddenly it crashed. While checking issues i found out disco...
node
Detecting the double server boost 10 messages
rotund helm I am listening to the `messageCreate` event and, when the `message.type` equals `8`, Sends a message to the channel. How...
node
Strange session error when logging in. 5 messages
cunning elbow This error is being thrown when I call `client.login(token)`: > Not enough sessions remaining to spawn 1 shards; only 0 ...
node
Is there a way to read users bio? 9 messages
earnest glade I want to add a function that checks users bio for links
node @discordjs package