mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-10 19:04:21 +02:00
trop de truc pour tout ecrire
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const {EmbedBuilder} = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: 'booster',
|
||||
description: "Permet de voir les boosters du serveur",
|
||||
category: 'utils',
|
||||
emote: '🚀',
|
||||
utilisation: 'booster',
|
||||
async execute(message, args, client) {
|
||||
|
||||
let boosters = message.guild.members.cache.filter(m => m.premiumSince)?.map(function(m) {return `<@${m.id}> boost depuis : <t:${parseInt(m.premiumSinceTimestamp / 1000)}:f>`}).join("\n");
|
||||
if(!boosters || boosters.length < 1) boosters = "Personne n'est en train de booster le serveur";
|
||||
|
||||
let embed = new EmbedBuilder()
|
||||
.setTitle("Boosters")
|
||||
.setDescription(`**Il y a ${message.guild.members.cache.filter(m => m.premiumSince).size} boosters**\n\n${boosters}`)
|
||||
message.channel.send({embeds : [embed]});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user