djs-questions

13317 threads · Page 88 of 267

My bot crashes because of memory leaks like after every 20 min's it crashes 5 messages
humble sundial <--- Last few GCs ---> [23636:000001C06D5C3E30] 625016 ms: Mark-Compact 4044.5 (4132.0) -> 4034.5 (4138.3) MB, 864.26...
messageCreate No Message? 7 messages
woven bay dj version 14.13 Why can't I receive messages in my messageCreate event? But interactionCreate can receive /ping, but no...
NO INVITATION LINK 2 messages
uncut crescent I want to create a bot, but when giving it the scope of bot and message read, and admin permissions, it doesn't let me g...
Multi Select in command parameter 21 messages
full linden Hello, i have a general question. Is it possible to enable multi-selection, similar to stringSelectMenus, as a command...
node
Permissions 8 messages
somber vessel Hey, I got an array like `["SendMessages", "ViewChannel"]`, how can I use `BotMember.permissionsIn(channel)` with that a...
node
Editing a message to insert a new component gives "Interaction failed" message? 18 messages
undone saffron Pretty simple thing here. Within my Discord bot, after a user successfully selects an option from a `StringSelectMenu` ...
Edit two messages within the same button handler 3 messages
mint dagger Hello, I have a button handler that will call an external API, send an embed, and edit another message embed too, depend...
Embed question 4 messages
[Unknown Interaction] from any deferReply, and from some editReply/reply 13 messages
dim mirage as an example of usage: ```ts export class MyService { constructor(@Inject('client') client: Client) { this.client...
SyntaxError: Unexpected token 'export' 4 messages
fading crystal ```js const Discord = require("discord.js") const buttonCommand = new Discord.SlashCommandBuilder() .setName("chann...
How can I check the permissions in @discordjs/core 17 messages
jagged sun How can I check the permissions of my bot & the member who sent the message (or interacted with a component) in the hand...
@discordjs package
Embed message text design 7 messages
verbal oriole Hi, I found these 2 examples of bot messages and I can't seem to recreate having the code text as small as in those imag...
Embed with image in code block 4 messages
verbal oriole Hello, I came across this example of embed message that has images in the code block. I am working on something similar...
Minigames Bot project 3 messages
torpid peak would anyone like to help me with my minigames bot?
Re-sending Embed Unmodified Nevertheless Changes Its Appearance Significantly 3 messages
slender hearth If I copy an embed from one message and attach it to a new message (something like this):```ts webhook.send({ embeds:[Di...
node
Reordering Embeds and Attachments in a Message 5 messages
slender hearth As far as I can tell, Discord orders posts as (1) text, (2) all attachments, (3) all embeds. What I'd really like is to...
node
What is the proper way to use slash commands 26 messages
fading crystal I have seen many ways u can use slash commands but I want to know the most flexible and easiest way
TypeError: Cannot read properties of undefined (reading 'id') 6 messages
timid citrus ```js async execute(interaction) { const member = interaction.member; if(member.roles.cache.some(ro...
How to update a message after the interaction with a component without using a component collector. 12 messages
lucid bolt I have a log member sistem that sends a message with a webhook when a member joins the server. This message has a button...
timestamps 19 messages
tough edge i need help with timestamps, this example command but how i do something like this with the time?
Reply to the original command on a second message 3 messages
oblique shell I have a bot with a slash command that once used, posts a preview of the message that the bot is about to post. Once the...
beginner d.js 10 messages
fading crystal ```js const TOKEN = "ggggg" const clientId = "1169295307490742333" const guildId = "1169296221278576670" const Discord ...
Does Sharding take advantage of multiple CPUS? 4 messages
oblique musk I've read through the docs on Sharding and have performed the basic Sharding Manager implementation. I'm hoping to take ...
"ERR_INVALID_STATE" "Writer has been released" when trying to repost an attachment 22 messages
slender hearth I am trying to take a `Message`'s `.attachments` and "repost" them attached to a new message (sent via webhook, if it ma...
node
Error [GuildMembersTimeout]: Members didn't arrive in time. at Timeout._onTimeout (C:\Users\it 8 messages
coarse jackal like my bot is fetching its users very
Components falsely listed as optional? 32 messages
undone saffron In the documentation for [ChannelSelectMenuBuilder](https://discord.js.org/docs/packages/builders/1.4.0/ChannelSelectMen...
it wont lemme set a variable as the key of the object 2 messages
graceful grove ```js channel.permissionOverwrites.edit(message.guild.id, { args[3]: false, }).catch((err)=>{ ...
Getting the executor from Audit Logs 33 messages
next dove Hello i have this code: ```js const fetchedLogs = await oldMember.guild.fetchAuditLogs({ limit: 1, ...
how to get all channel names? 6 messages
graceful grove ```js Array.from(await message.guild.channels.cache.values()) ```
Fetching ForumChannel threads returns ThreadChannels from all ForumChannels 7 messages
deep crest I am trying to fetch threads from a specific `ForumChannel`, however, the `ThreadChannel`s that are returned are not fro...
button doesn't show in the webhook message 4 messages
lucid bolt in this log member https://sourceb.in/RnMm9Udsd8 when a user joins the server a webhook sends a message but even if ther...
Shard Manager is destroyed almost immediately 14 messages
warm bay I'm using the same device, network, and bot token; bot1 starts normally but bot2 doesn't. - bot1 is written in common js...
node
How to send a message with "SERVER" badge 8 messages
nimble valve Hello, I've recently discovered that some messages are sent by guilds itself. These messages have the "SERVER" badge aft...
[TS] Nodemon x ShardingManager never emits ready 14 messages
wintry mango As stated above, using nodemon with Djs sharding manager never emits ready for any of the shards. The Debug Event does ...
node
Connect Timeout Error 12 messages
woven bay I want to develop a Discord bot, written according to the discord.js document, but a problem occurred during runtime, pr...
Move Log 32 messages
rigid knot I'm trying to create a move log like this: ```js client.on('voiceStateUpdate', async (oldMember, newMember) => { if ...
Loop Not behaving correctly. 17 messages
jolly imp I have an SQL database were data is being fetched from and it is not properly behaving, the code is ran once every 30 se...
Documentation error 3 messages
undone saffron Repeating what was said here: https://discord.com/channels/222078108977594368/222197033908436994/1166414494931628083 I'...
help bot doesn't respond to messageCreate 26 messages
graceful grove so I have all intents turned on inside dev portal I dm it !ticket and the bot remains silent and the console remains emp...
Editing interaction message gives an error 9 messages
fallen chasm I am making a queue system for my discord bot and I have a command where you do it sends a message and a join queue butt...
Anyone using the message broker from discord.js subpackage "brokers"? 3 messages
main narwhal I'm looking for anyone who's using the subpackage brokers https://discord.js.org/docs/packages/brokers/main
@discordjs package
how to get ammount of people inside a certain guild? 4 messages
graceful grove how to get ammount of people inside a certain guild? msg.guild.size doesnt work
TypeError: fs.existsSync is not a function 2 messages
hardy briar Could anyone help me with this, I'm a little confused about why it's not working but. ``` Error while executing 'agree...
node
how to fix can do npm init? 10 messages
how to fix my ping command not work 13 messages
edgy condor idk what to put here
How to make a filter? 24 messages
sleek nacelle ```const filter = (interaction) => { interaction.user.id === interaction.author.id; return } const collector = ...
node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */) 4 messages
fringe sluice Hey! i have an : ```console node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPr...
node
Audit Logs : VoiceStatUpdates 12 messages
still sedge Hey ! How to separate the logs of a member who is disconnected and a member who leaves himself ?
Log when a member gets timed out 5 messages
tired galleon Is it possible for a Discord Bot to send a message in a Channel when a member gets Timed Out so for example, when i ti...
node
Why isnt a public endpoint needed on discord.js ? 2 messages
hardy finch When developing using discord api (without discord.js library) by itself, per their guides, a public url is needed so t...
node @discordjs package