Is there any way to edit an ephemeral by message and channel id?
Is there any way to edit an ephemeral by message and channel id?
discordjs can webhook send message with \n?
I tried and it didn't work?
...
let message = BolumunSayisi+". bölüm geldi!\n"+` <t:${DateNow}:F> `+Link
let message = BolumunSayisi+". bölüm geldi!\n"+` <t:${DateNow}:F> `+Link

Bot not responding to prefix or anything but is online
My code below is what I am using and my prefix is:
```js...
!
using "dependencies": {
"discord.js": "^14.11.0"
}
"dependencies": {
"discord.js": "^14.11.0"
}
Send lightning network lnurlp link
I'm starting to develop a bot in typescript with discord.js v14 and a command from the bot generates a lightning network (bitcoin layer 2) invoice to receive donations. As a response, an embed is generated with a qr to scan with an LN wallet, but if the user generates it from the same smartphone it can be difficult to scan the qr, so it occurred to me to also send a link so that they can tap and open their wallet, but I can't generate it like lightning://lnbc..... Any ideas?
Don't include lib.dom.d.ts
Apparently discord.js includes lib.dom.d.ts types. This pollutes the user's type namespace with dom types by just including discord.js, making typescript think that things like
document
will be available (when they of course wont be, since discord.js will always always run in nodejs). From what I can find, there's no real way to exclude dom types from userland if they have been included in a library. A library should not include dom types unless it uses things that are only available in the dom (in which case it probably wont run in node).
I couldn't find any discussion about this, neither here nor in github issues, but this is really bad practice from what I know?
If undici for whatever reason requires dom types even though it is explicitly made for node, then it is a bad package and should be fixed instead of polluting the users types....
locales in interactions?
so i have a command that handles locales, it has buttons and those are handled in a different event handling file. but I cannot figure out how to extract locale from interactions.
```
client.on(Events.InteractionCreate, async interaction => {
let userLocale = interaction.member ? interaction.member.locale : (interaction.user.locale || 'en');
...
Can't send attachment from buffer
i made a bot that preview STL files, but got an error when trying to send the message, Code and error is below
Internal queue causing too much delay in front end
How would we either work around or speed up the internal queue implemented by Discord.js?
At some point it seems there was an exposed setting for
burst
but I can't find this anywhere.
Unfortunately we are experiencing instances when performing multiple requests that mean the queue gets very long and sometimes requests are only ever actually sent to the Discord API after over 90 seconds.
Attached is an image of our Elastic APM transaction tracking to show the time that the reqeusts sit due to a backup in the queue, yet the queue is not being processed anywhere near the rate limit of 10/ second....
Authorization code grant flow
Hey y'all first time discord.js user. I'm using the latest version, going through the Authorization code grant flow in the guide. It's saying I should be returning ```{
"access_token": "an access token",
"token_type": "Bearer",
"expires_in": 604800,
"refresh_token": "a refresh token",...
Pronouns
Is it possible to access a users Pronouns to display on a UserInfo command?
<@&undefined>
the collector:```js
collector.on('collect', i => {
if (i.user.id === interaction.user.id) {
if (msg.deletable) {
msg.delete().then(async () => {...
Getting Clients Connected to Voice Channels without Cache
I'm working on a bot that should help us see if people who signed up for an event are present in voice chat and if so assign them their attendance credit. For that I've created a slash command which loops through all voice channels and gets a list of all connected users and to what channels they are connected.
The issue is: once the bot is running, if a new client joins voice, it won't be displayed. Furthermore if a client leaves voice chat it's still displayed. To me it seams clear there's a caching issue.
```js
[...]...
How to make a slash command that disable/enables other slash commands?
Node -v 18.16.0
Discordjs v14.11.0...
Detect if an Ephemeral message is still onscreen?
I am sending an Ephemeral message containing an embed to the user with interaction.reply.
I store that reply message in a variable to be able to edit it.
From there on, I edit the Embed on a timer.
If the user dismisses the message I'd like to be able to stop that processing. Is this possible?
When I check to see if the message exists by ID, or to fetch it, it always seems to come back OK, I can't see any property on the the message which indicates it's been dismissed....
Discord.JS Feature Request
Will the functionality to extend the Structure of a class comeback sometimes?
Moving from v13, autoArchiveDuration no longer accepts 'MAX' as it requires int32
Hi! I'm working on migrating from v13 to v14, everything is going well except for one specific thing. autoArchiveDuration (for thread creation) no longer accepts 'MAX' as a value, as it requires an int32 value, however I cannot find the replacement value for 'the maximum' anywhere.
Can somebody tell me how I can select the maximum possible length? The premium subscription count can vary in this server, so I prefer it automatically selecting the highest possible value.
Thanks in advance!...
Bad typings
export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
export type RESTPutAPIGuildMemberResult = APIGuildMember | never;