djs-questions

9202 threads · Page 87 of 185

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...
1150878580193116250
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...
1150878580193116250
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 ...
1150878580193116250
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
998292157150535700
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...
1150878580193116250
how to fix my ping command not work 13 messages
edgy condor idk what to put here
How to make a filter? 23 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...
1150878580193116250
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...
1150878580193116250
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...
1150878580193116250 998292157150535700
Message broker / Message queue 6 messages
main narwhal Is there any native support for message brokers like rabbitmq? Thanks in advance
998292157150535700
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 12 messages
ivory ledge I am getting this error like 20 seconds after the bot is on but 2 days ago it was working fine and i have not added any ...
1150878580193116250
What method to check if invite is paused? 2 messages
wicked gate Ping if you know the answer (pls)
🐛 Issue: Permission Error (50013) When Deleting a Role with Discord Bot 9 messages
dark schooner **Description:** I am encountering a 50013 Permission error when my Discord bot tries to delete a role from a server. Th...
get all mesages after a specific time 3 messages
onyx wasp Im making a purge command but when i try to delete messages it says it can only delete messages that are younger than 14...
1150878890307358882
using rest API to update server banner 5 messages
fathom cliff I'm trying to use the REST api to update my server banner. The problem is that it seems to work - the await rest.patch...
998292157150535700
aboort error 2 messages
coarse jackal on latest djs
Invalid bitfield in audit log channel permissions event 5 messages
glad canopy Hey, I currently have the issue that errors like these are sent multiple times a minute into my bot's console: ```js Ran...
1150878498534199426
Status 9 messages
sand cypress Hello Everyone. I am currently having trouble on setting my bots status. Would anyone have a basic script to change it?...
errors in my code 3 messages
polar wasp hey so im trying to make a streaming selfbot but ive been getting loads of errors whenever i try to add stuff like addbu...
Bot Crashing After a non permission user runds command 5 messages
1150878580193116250 998292157150535700
Extending Guild, Channel, Member etc - TypeScript 3 messages
plucky bobcat Is it possible to extend upon Guild, Channel, Member etc objects? I have tried extending them but the constructors req...
Does anyone have a https request bot infrastructure? 2 messages
weary leaf ?
1150878580193116250
djs versions 3 messages
gaunt spoke What version would be the best to create a discord bot in ? have any suggestions?
Anyone can help me to fix old code ? 7 messages
shell lion Hi there! Actually i'm stuck on an old code. ```ts const fullPermissions = commandsCol.reduce< GuildApplica...
Problems in developing discord bot 24 messages
zinc imp Hello everyone, I'm new here , sorry, if i do something wrong. I'm trying to develop my own bot, I'm trying and wonderin...
998292157150535700
How would you accomplish this? 8 messages
crystal pike I've got the following situation. My bot is attempting to collect information from a user. At first, it will ask you, "H...
Is it best to stay away from batch functionality? 8 messages
dusk heath I have a use case where I have a website interface for my bot. I can track users, edit them, accept applicants through t...
1150878580193116250
How to filter MemberUpdates for Timouts 3 messages
static light Hey, i want do Log Timeouts but there is no AuditLogEvent for example "Member.Timouts". I need to filter the Member Upda...
Emojis in buttons doesn't work 2 messages
odd igloo Code: https://sourceb.in/dCkWGPGOOj Error is that it says it is a invalid emoji, but it literally worked like 2 days ago...
1150878580193116250 998292157150535700
permission | bitfield invalid 3 messages
rare reef ```js if (!permissions.has("VIEW_CHANNEL")) { interaction.reply("Channel has to be viewable to everyone."); ...