Eden
Eden
DIAdiscord.js - Imagine an app
Created by Eden on 3/29/2024 in #djs-questions
Am I being rate limited?
does djs translate it to ms?
13 replies
DIAdiscord.js - Imagine an app
Created by Eden on 3/29/2024 in #djs-questions
Am I being rate limited?
i went on the discord api docs and it said in seconds though
13 replies
DIAdiscord.js - Imagine an app
Created by Eden on 3/29/2024 in #djs-questions
Am I being rate limited?
It didn't say much but the time to wait is like 900 seconds
13 replies
DIAdiscord.js - Imagine an app
Created by Eden on 3/29/2024 in #djs-questions
Am I being rate limited?
I just printed out everything in the rateLimited event
13 replies
DIAdiscord.js - Imagine an app
Created by Eden on 3/29/2024 in #djs-questions
Am I being rate limited?
I looked at the logs and I got a rate limit for 15 mins
13 replies
DIAdiscord.js - Imagine an app
Created by Eden on 3/29/2024 in #djs-questions
Am I being rate limited?
How about using an interaction editReply? WIll the rate limit for that be more linient?
13 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/22/2024 in #djs-questions
How to update style of a button?
hmm okay I will do some experimentation ty
26 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/22/2024 in #djs-questions
How to update style of a button?
I have all the button styles stored; can I just make a new button using ButtonBuiler() or do I still need to use ButtonBuilder.from()?
26 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/22/2024 in #djs-questions
How to update style of a button?
but the line
rows[row] = newRow
rows[row] = newRow
gives
Type 'ActionRowBuilder<AnyComponentBuilder>' is missing the following properties from type 'ActionRow<MessageActionRowComponent>': type, equalsts(2739)
Type 'ActionRowBuilder<AnyComponentBuilder>' is missing the following properties from type 'ActionRow<MessageActionRowComponent>': type, equalsts(2739)
26 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/22/2024 in #djs-questions
How to update style of a button?
right now I'm trying this:
let rows = msg.components
const newRow = new ActionRowBuilder(rows[row]);
const button = new ButtonBuilder()
newRow.components[column] = button
rows[row] = newRow
await msg.edit({components: rows})
let rows = msg.components
const newRow = new ActionRowBuilder(rows[row]);
const button = new ButtonBuilder()
newRow.components[column] = button
rows[row] = newRow
await msg.edit({components: rows})
26 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/22/2024 in #djs-questions
How to update style of a button?
right now the problem is that the components of the message I've fetched is the type of ActionRow<MessageActionRowComponent>[], but when I use a ButtonBuilder to create a new button, I'm just not sure how to "compile" it into the type of MessageActionRowComponent so that typescript is happy
26 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/22/2024 in #djs-questions
How to update style of a button?
I know how to style a button, I'm just not sure how to edit a specific button inside a message
26 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/22/2024 in #djs-questions
How to update style of a button?
Also I'm using typescript
26 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/18/2024 in #djs-questions
Where to import Routes in TS?
that seems to have worked, ty
5 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/18/2024 in #djs-questions
Where to import Routes in TS?
vsc, and 14.14.1
5 replies
DIAdiscord.js - Imagine an app
Created by Eden on 1/18/2024 in #djs-questions
Where to import Routes in TS?
IDE, let me see if tsc says anything
5 replies