Problem with boost detector

if(boostchannel.guild.premiumTier === "TIER_1") {
const embed = new Discord.MessageEmbed()
.setTitle(`Nouveau boost !`)
.addField(`Booster :`, booster.toString())
.addField(`Niveau de boost du serveur :`, "3")
.addField(`Nombre de boosts sur le serveur :`, boostchannel.guild.premiumSubscriptionCount.toString() + 1)
.setImage(boostCard)
.setFooter(`Merci à toi ! ⭐`)
.setTimestamp();
boostchannel.send({embeds: [embed]})
}
if(boostchannel.guild.premiumTier === "TIER_1") {
const embed = new Discord.MessageEmbed()
.setTitle(`Nouveau boost !`)
.addField(`Booster :`, booster.toString())
.addField(`Niveau de boost du serveur :`, "3")
.addField(`Nombre de boosts sur le serveur :`, boostchannel.guild.premiumSubscriptionCount.toString() + 1)
.setImage(boostCard)
.setFooter(`Merci à toi ! ⭐`)
.setTimestamp();
boostchannel.send({embeds: [embed]})
}
when I boost my server: 4 boosts and 3 boosts before, but the bot says the server has 3 boosts when he sends the embed :/
8 Replies
pat
pat3y ago
you hardcoded it to be 3 no?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
pat
pat3y ago
clearly you know what they meant
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Chadoxi
ChadoxiOP3y ago
Chadoxi
ChadoxiOP3y ago
When my friend boosted Before the boost, the server had 4 boosts And when he boosted, the server has 5 boosts, but I think I found, I will test when someone boost
probablyraging
<Guild>.premiumSubscriptionCount is the amount of server boosts your server currently has, adding + 1 will show the incorrect number Referring to this
.addField(`Nombre de boosts sur le serveur :`, boostchannel.guild.premiumSubscriptionCount.toString() + 1)
.addField(`Nombre de boosts sur le serveur :`, boostchannel.guild.premiumSubscriptionCount.toString() + 1)
Chadoxi
ChadoxiOP3y ago
I added + 1 to show the good amount of boosts Because if I boost one time, my server has 2 boosts but the bot says there is 1 boost oh wait I will test something
Want results from more Discord servers?
Add your server