Updated Server Command

This commit is contained in:
Ahmad 2024-06-09 16:37:50 -04:00
parent 66b776159c
commit a556afc9ec
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF

View file

@ -11,8 +11,7 @@ const command: Command = {
.setDescription("Provides information about the server."),
execute: async (interaction) => {
await interaction.reply(
/* @ts-ignore */
`The server name is ${interaction?.guild?.name} and it has ${interaction?.guild?.memberCount} members. It was created on ${interaction?.guild?.createdAt} and is ${interaction?.guild?.createdAt?.getFullYear() - 2024} years old.`
`The server ${interaction?.guild?.name} has ${interaction?.guild?.memberCount} members and was created on ${interaction?.guild?.createdAt}. It is ${new Date().getFullYear() - interaction?.guild?.createdAt?.getFullYear()!} years old.`
);
},
};