mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-02 09:44:14 +00:00
Updated Server Command
This commit is contained in:
parent
66b776159c
commit
a556afc9ec
1 changed files with 1 additions and 2 deletions
|
@ -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.`
|
||||
);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue