mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-07 14:55:25 +02:00
fix bug : le niveau de permission aux commandes d'aide
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: 'botstat',
|
||||
aliases: ['botstats'],
|
||||
description: 'Affiche les statistiques du bot.',
|
||||
emote: '🔍',
|
||||
utilisation: 'botstat',
|
||||
category: 'utils',
|
||||
|
||||
async execute(message, args, client) {
|
||||
const guilds = client.guilds.cache.size;
|
||||
const channels = client.channels.cache.size;
|
||||
const users = client.users.cache.size;
|
||||
const emojis = client.emojis.cache.size;
|
||||
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor("#FFFFFF")
|
||||
.setTitle(`🔍 statistiques du bot \`${client.user.username}\``)
|
||||
.setThumbnail(client.user.displayAvatarURL({dynamic: true}))
|
||||
.addFields([
|
||||
{ name: '🏰 Total Serveurs', value: `\`${guilds}\``, inline: true },
|
||||
{ name: '🆔 Total salons', value: `\`${channels}\``, inline: true },
|
||||
{ name: '👨💻 Total Utilisateurs', value: `\`${users}\``, inline: true },
|
||||
{ name: '🤖 Total émojis', value: `\`${emojis}\``, inline: true },
|
||||
])
|
||||
.setTimestamp()
|
||||
.setFooter({text: `${client.user.tag} © 2024`, iconURL: client.user.displayAvatarURL({dynamic: true})});
|
||||
|
||||
message.reply({ embeds: [embed] });
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user