General Updates

This commit is contained in:
Ahmad 2024-03-03 17:43:26 -05:00
parent a67829c6f1
commit cdb82b771e
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
10 changed files with 161 additions and 129 deletions

View file

@ -1,4 +1,4 @@
import { SlashCommandBuilder, CommandInteraction } from 'discord.js';
import { SlashCommandBuilder, CommandInteraction } from "discord.js";
interface Command {
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
@ -7,11 +7,11 @@ interface Command {
const command: Command = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
.setName("ping")
.setDescription("Check the latency of the bot"),
execute: async (interaction) => {
await interaction.reply(`Pong!`);
await interaction.reply(`Pong! Latency: ${Date.now() - interaction.createdTimestamp}ms`);
},
};
export default command;
export default command;