Add a /serverinfo command that replies with a nice embed showing the server name, the member count and whether it is Premium
Shows server information including the server name, member count, and Premium status. Use /serverinfo to display a formatted embed with these details.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
1
โจ Yes
// Server Info command - displays server details
mee6.command(
'serverinfo',
{
description: 'Display server information',
},
async (ctx) => {
const guild = await mee6.guild();
await ctx.reply({
embed: {
title: `๐ ${guild.name}`,
color: '#5865F2',
fields: [
{
name: 'Members',
value: guild.memberCount.toLocaleString(),
inline: true,
},
{
name: 'Premium',
value: guild.premium ? 'โจ Yes' : 'No',
inline: true,
},
],
thumbnail_url: guild.iconUrl || undefined,
footer: {
text: `Server ID: ${guild.id}`,
},
},
});
}
);