Rakin
Rakin
DIAdiscord.js - Imagine an app
Created by Rakin on 5/19/2024 in #djs-questions
Manual sharding
I'm just asking this for the sake of my curiosity. So I have parts of a discord bot that uses Discord.js. Each part performs something different, and instead of logging them into the same bot account, I'd like to shard them manually so they are responsible for operations done on certain guilds. I'm aware sharding is not required if my bot's guild count does not reach the maximum limit. I asked this question just cause I'm curious to see if this is possible.
17 replies
DIAdiscord.js - Imagine an app
Created by Rakin on 11/1/2023 in #djs-questions
How to send a message with "SERVER" badge
No description
9 replies
DIAdiscord.js - Imagine an app
Created by Rakin on 1/1/2023 in #djs-questions
Is there a possible way to see who unboosted the server?
I know that I can check for member.premiumSince on a memberUpdate event, but the problem is if they remove one or more boosts after they boost like multiple times? How do we determine that?
4 replies
DIAdiscord.js - Imagine an app
Created by Rakin on 11/26/2022 in #djs-questions
How to make a click-to-navigate logging system?
I have a logging bot which logs deleted messages into a private channel. I want to add a link to the logs that will navigate me to the context of the deleted message, so that I can see what was happening there at that time. Is that possible?
6 replies
DIAdiscord.js - Imagine an app
Created by Rakin on 11/19/2022 in #djs-questions
Is there a way to listen to timeouts?
I'm making a logging bot, but I also want to log member timeouts. I couldn't find a way to listen for timeouts. Is there any way for listening to timeouts?
5 replies
DIAdiscord.js - Imagine an app
Created by Rakin on 10/11/2022 in #djs-questions
How to listen to button interactions for any message
Creating and receiving button interactions are really simple - but the problem is once I restart the bot it does not listen to the buttons in old messages anymore. That's a problem when it comes to a "Button role system". Now how do I receive button interactions from the old messages? Current code:
client.on("interactionCreate", async interaction => {
if (interaction.isButton()) {
console.log("Received interaction");
}
});
client.on("interactionCreate", async interaction => {
if (interaction.isButton()) {
console.log("Received interaction");
}
});
19 replies