djs-questions

9202 threads · Page 29 of 185

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...
1150878580193116250
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
1150878580193116250
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: [ ...
1150878580193116250
Session WS 68 messages
ashen egret https://sourceb.in/ryDYsmAgUw
1150878580193116250 998292157150535700
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...
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? 87 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...
1150878580193116250
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...
1003448629866020986
Is there a way to save deleted messages and use them in transcript? 18 messages
earnest glade ```js const fs = require('fs'); const path = require('path'); async function generateTranscript(channel) { const me...
1150878580193116250
Log error 17 messages
earnest glade I`m trying to log new ticket creation by using this code
1150878580193116250
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 39 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...
1150878580193116250
Bot command listing on profile 30 messages
dreamy shoal ```js const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v10'); module.exports ...
1150878580193116250
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?
Waiting for a message 1 messages
flat sorrel how would i go about waiting a message from an interaction? discord.js@14.16.3 Node 10.8.2
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...
1150878580193116250
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...
1150878580193116250
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...
1150878498534199426
How do i 'resolve' a TextChannel sendTyping 7 messages
frank flame without sending a message maybe? Wanting to know if it's possible
Rich Presence with ESModule 1 messages
untold grail How can i make a rich presence using esmodule instead of commonjs? i cannot figure it out
1150878580193116250 1003448629866020986
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 9 messages
opal geyser Hello, I'm having trouble setting up command handling with TypeScript. I'm trying to follow [the official guide](<https:...
1150878580193116250 998292157150535700
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...
1150878580193116250
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...
1150878580193116250
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 ...
1150878580193116250
Is there a way to read users bio? 9 messages
earnest glade I want to add a function that checks users bio for links
1150878580193116250 998292157150535700
[RPC] Pause timer on ActivityType.Listening 3 messages
spare palm Is there a way to pause the bottom timer? I know it's not being updated, but I figured this is the best place to ask.
1003448629866020986
Type error with ApplicationCommandType and ContextMenuCommandType 13 messages
fathom onyx I just upgraded TypeScript and some other things in my package.json and it apparently now thinks that the following code...
1150878580193116250
Failure to push a slash command 4 messages
rough oak ``` const getMp3 = () => { const allTracks = fs.readdirSync(path.join(path.resolve(), 'audio')).filter(file => file....
.getMember() with Typescript 20 messages
pure vapor I saw that `options.getMember()` sometimes doesn't return a GuildMember. How can I filter this case out?
Ephemeral replay to a channel message 8 messages
pale moss Hey is it possible to replay to a message with an ephemeral or something similar (so only the user can see it, and it's ...
1150878580193116250
sweeping the cache 13 messages
dusky oyster hi, I obviously haven't ever used it, but is it recommended? And if I have GuildMembers intent, will it sweep that as we...
Can ephemeral ever fail and show up as a regular message? 5 messages
idle galleon Reason I ask is because I have confirm/cancel buttons on slash commands that can only be invoked with certain permission...
1150878580193116250