BradyDaLlama .*˖
DIAdiscord.js - Imagine a bot
•Created by BradyDaLlama .*˖ on 1/7/2024 in #djs-questions
use setEmoji to set no emoji/ remove an emoji from a button
I normally use setEmoji({name: undefined}) when I want to not have an emoji on a button, generally for dynamic button creation. But this stopped working, and started throwing an error
.setEmoji({name: undefined})
*this is what I have previously used up to now
unsure of why this stopped working, I also tried
.setEmoji()
.setEmoji(null)
.setEmoji({})
I've looked on the docs and searched here and people are suggestion different variations of what I listed above, but it none of them seem to work anymore.
Did this option change or get removed?12 replies
DIAdiscord.js - Imagine a bot
•Created by BradyDaLlama .*˖ on 11/21/2023 in #djs-questions
Cache on edit message (?)
So I've noticed my bot's memory goes up over time, and narrowed it down to this line:
I assume editing a message will cache it, but if I have
GuildMessageManager: 0
for the make cache, I feel like there's something else happening.
I also don't quite think it's a memory leak because 1. if I comment only that line out, the memory is fine and 2. it goes up a bit just after editing the message (the edit is on a set interval to update a few times a minute).18 replies
DIAdiscord.js - Imagine a bot
•Created by BradyDaLlama .*˖ on 10/21/2023 in #djs-questions
Missing Access when deleting a VC but it does have the Manage Channel permissions?
5 replies
DIAdiscord.js - Imagine a bot
•Created by BradyDaLlama .*˖ on 9/3/2023 in #djs-questions
Get a list of all mutual severs
I'd like to get a list of every server that the bot shares with a user. I've looked around here and tried things like
client.guilds.cache.filter((guild) => guild.members.cache.has(userID))
but they always end up with a collection of size 0. I'm assuming it's something to do with something not being cached, so I was wondering if there's a better way to do it.25 replies
DIAdiscord.js - Imagine a bot
•Created by BradyDaLlama .*˖ on 2/19/2023 in #djs-questions
Bot crashes if there's an interaction before it refreshes / commands
When my bot is trying to start up, if an interaction happens before it reloads global commands logs in, it will finish loading global commands and then crash again. Is there any info on what to do about this? It stays in a loop until it happens to finish reloadinglogin before an interaction happens
(the error is unknown interaction, if that helps)
Also, from what I understand, the error message connects to not responding within 3 seconds. However it can't reply if it is still trying to get online, right?
58 replies
DIAdiscord.js - Imagine a bot
•Created by BradyDaLlama .*˖ on 7/19/2022 in #djs-questions
GatewayIntentBits.Guilds - Cannot read properties of undefined (reading 'Guilds')
146 replies