Boost Logger
i dont know if thats the right way and have no one that boost the server to test it
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Client, GatewayIntentBits } = require('discord.js');
const register = require('../../utils/slashsync');
module.exports = async (client, oldBoosters, newBoosters) => {
console.log('Boost Tracker Started');
if (!oldBoosters.premiumSince && newBoosters.premiumSince) {
moxx = new EmbedBuilder()
.setTitle('New Booster')
.setColor('#2ecc71')
.setTimestamp()
.setImage9('https://cdn.discordapp.com/attachments/1142527483883815052/1166332765466275882/tasty5.png?ex=654a1b08&is=6537a608&hm=262855bf32eeca9c0824107061222f911a50569425d05da65b3ac68b0b7a55c7&')
.setDescription(`
> **• Booster:** ${newBoosters.user.tag}
> **• Boosts:** ${newBoosters.premiumSubscriptionCount}
> **• Since:** <t:${parseInt(newBoosters.premiumSinceTimestamp / 1000)}:R>
`);
const channel = client.channels.cache.get('1166108886273642636');
channel.send({ embeds: [moxx] });
}
}const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Client, GatewayIntentBits } = require('discord.js');
const register = require('../../utils/slashsync');
module.exports = async (client, oldBoosters, newBoosters) => {
console.log('Boost Tracker Started');
if (!oldBoosters.premiumSince && newBoosters.premiumSince) {
moxx = new EmbedBuilder()
.setTitle('New Booster')
.setColor('#2ecc71')
.setTimestamp()
.setImage9('https://cdn.discordapp.com/attachments/1142527483883815052/1166332765466275882/tasty5.png?ex=654a1b08&is=6537a608&hm=262855bf32eeca9c0824107061222f911a50569425d05da65b3ac68b0b7a55c7&')
.setDescription(`
> **• Booster:** ${newBoosters.user.tag}
> **• Boosts:** ${newBoosters.premiumSubscriptionCount}
> **• Since:** <t:${parseInt(newBoosters.premiumSinceTimestamp / 1000)}:R>
`);
const channel = client.channels.cache.get('1166108886273642636');
channel.send({ embeds: [moxx] });
}
}