djs-questions

9202 threads · Page 178 of 185

.startThread Disable after creation message 8 messages
vagrant canyon Can we disable the "<User> started a thread message.
Scaled Messages 10 messages
covert socket Hi, I have a problem with a code, should I do this message: message.channel.send({components: [row]}); is printed last...
Anyone know why my command isnt working? 19 messages
west iron https://sourceb.in/ajKWuXLDXc
[✅]lastMessage is null when lastMessageId is not ? [DM channel] 12 messages
oak ether Hello ! As explained in this title, I'm using dmChannel in a command, just that atm : ```js const dmChannel = await us...
Bot isn't able to play a local audio file 8 messages
devout temple Hi. my bot won't play any local audio files but is able to join the voice chat. Any help? ``` client.on('message', mess...
missing intents 14 messages
toxic palm https://media.discordapp.net/attachments/694613546201251982/1056548326419468348/image.png idk what is wrong can someone ...
Error 2 messages
fierce skiff https://pastebin.com/nchSM2Q3 https://pastebin.com/nfVAtmsn Error en code
button spam 18 messages
dawn hatch client.on("messageCreate", message => { if (message.content.startsWith("-play") || message.content.startsWith("-start") ...
Trying to count custom emoji reaction in message 9 messages
sullen cosmos hi I am trying to get the count of the reaction which uses Custom Emoji when user reacted a certain emoji In a `Events.M...
How to make collector for select menu? 6 messages
north silo is there something wrong with my code?, it says 'This interaction failed' when i select ```js const row = new Ac...
Go to the next song with a button 9 messages
dawn hatch Hi, I have a function that serves to move to the next song but I do not know why when I use this function I get an error...
command not respoding 29 messages
torpid holly ```js const { EmbedBuilder } = require("discord.js"); const { getMember } = require("../../util"); const util = require(...
Using discord.js to work with interactions on a Cloudflare Worker 5 messages
safe egret Hello, Is there a way to use discord.js to receive, parse, and respond to interactions being sent to a Cloudflare Worke...
Use values from select menu outside of SelectMenuInteraction 7 messages
glacial viper My bot creates a user interface with multiple select menus for selecting settings. It stores the user selection in a da...
Checking if a user is timed out 15 messages
sullen marlin I'm looking for a way to check is a user is timed out when executing /timeout remove command. I've tried using `.isCommu...
How to make it so the gif changes on every command use 4 messages
red coyote I am using djs 14.7.1 `https://thecatapi.com/api/images/get` whenever you go on this url it will show a new gif/image bu...
How can I get the value of the other from 3 select menus? 2 messages
quartz geyser how can I do
How can I make a ban command? 6 messages
silver compass Hello, I just started to use discord.js and I'm trying to find a way to ban someone, but I can't find anything that help...
How to read channel messages from a server where I am not an admin? 8 messages
open harness I am experienced in JS but new to Discord.js and Discord API. In a Node app, I want to get messages from a channel on a ...
[ws] What are the optional dependencies for web socket optimization? 3 messages
leaden thunder The optional dependencies of DJS for web socket optimization are: - zlib-sync - erlpack - bufferutil - utf-8-validate ...
998292157150535700
Bot message won't mention user nor show invite embed 27 messages
slender dew ```ts interaction.editReply( `${interaction.user} is inviting you to join ${invite?.url}\n**__${ ...
button to go on with the song 3 messages
dawn hatch Hello, I would need to implement the button to go on with the song but I would not know how to do it and I'm here to ask...
How to use autocomplete with subcommands ? 121 messages
dense oracle I try to use the autocomplete with subcommand but that don't work Here's is my code : ```js module.exports = { data: n...
channel.createWebhook is not working right 39 messages
summer mantle ```js channel.createWebhook({ name: "TEst" }).then((hook) => { console.log("hi") ...
opus issue 4 messages
lilac prairie When i try to run my bot it shows up with this
998292157150535700
modal doesnt work 19 messages
candid iron command loads but when i use /changelog it doest show modal
Why is it bad to `ApplicationCommandManager.set()` app commands when the bot is ready? 35 messages
silver fable So I compared `ApplicationCommandManager.set()` with a custom function I wrote to sync commands and both are not effecti...
avatar url format 3 messages
runic kiln how can i change the avatar url format i tried use the docs but this link is 404 https://discord.js.org/#/docs/rest/main...
Custom Emojis in other server 6 messages
lusty grove Was wondering what the reason would be for custom emojis not showing up in other servers would be. In both servers the b...
function will sometimes not be called 2 messages
jagged folio I have this function, Which is called daily at 11pm. When state is equal to "dailyOff", It would send the "Working"... M...
List all members with a role 14 messages
nova sorrel Using Node 16.9 and Discord.js 14.7.1: ```js await console.log(interaction.member.guild.roles.cache.get(process.env.MUTE...
data.components[4].components[0][UNION_TYPE_CHOICES] Value of field type must be one of (4,). 7 messages
bold hemlock ```js new ModalBuilder() .setCustomId("scrims") .setTitle("Scrim creation screen") .setComponent...
Levels in voice 6 messages
deft void Hello, I would like to make a level system but with the time spent in voice.
Rest + Spread pattern in event handler with TS 4 messages
celest sand ```ts for (const event of events) { if (event.once) { client.once(event.name as keyof ClientEvents, (...args) => e...
Unable to create a pronoun bot that allows for ONLY predefined OR custom pronouns. 20 messages
mellow zephyr I'm trying to create a pronoun bot that allows for already defined pronouns, and if there are non that the user requests...
Button inside embed 12 messages
vagrant canyon Im trying to figure how to have buttons inside embeds. Do I have to add them in embed fields ? I'm a bit confuse.. I did...
FS Help with .append 3 messages
junior seal Hey there I am trying to use .append on an array that is stored on a local JSON file that I am importing using FS. Here ...
getString() is not a property of CommandInteraction.option (Typescript) 4 messages
fleet marsh I'm following this part of the guide: https://discordjs.guide/slash-commands/parsing-options.html#choices ```typescript ...
Forum Post Tags 3 messages
mint rivet what i am trying to find is when a thread post is created i am trying to find what tag it has and if it has the tag i wa...
Cannot create a Buffer larger then 0x10... Bytes (Discordjs opus encoder) 3 messages
marsh furnace Here is all the data that I think may be useful to help debug this Buffer: In the attached txt file to string (using <Bu...
998292157150535700
What are the benefits of Collection? 8 messages
opaque oak What are the benefits of Collection?
Anyone knows a good playlist, website or youtube channel to learn how to code a discord bot? 4 messages
dim spruce https://www.youtube.com/watch?v=gV4iltEdBs4&list=PLaxxQQak6D_fxb9_-YsmRwxfw5PH9xALe I have this one but Idk if it's good...
GuildMemberAvailable is not triggered 10 messages
robust wedge The GuildMemberAvailable event isn't working on my bot. All the events are processing correctly, but when I try GuildMem...
Discord Rich Presence not showing up 9 messages
placid tiger Any ideas why my discord rich presence won't show up? i literally have zero errors, the promise returned by ``setActivit...
1003448629866020986
please help ) 6 messages
candid iron How can i check if member has role checking by id of role?
Members didn't arrive in time 4 messages
summer blade Bot can't fetch all members from server when only 5 members(even can't imagine what happens if gonna be 10k) Bot is new...
Unexpected token '??=' 12 messages
weary dock Getting this error when trying to start my bot node version: 18.12.1 npm version: 8.19.2 /root/roleplayhelper/node_mod...
guildMemberManager this.guild.shard.send Can't read property of undefined (reading 'send') 31 messages
summer blade I'm trying to get all members of certain role, but unfortunately you can get only from cache, so...only one way to do th...
Eval and fetchValues in shards 28 messages
summer blade I has config.js file which i need edit on all shard in same time when event will say me about some change But if i just ...
What is this called and where can I learn more about creating my own (apps?) 8 messages
wanton flicker I can't seem to find it in the official djs docs.