File size: 503 Bytes
67bf4ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { ChatInputCommandInteraction, Message } from "discord.js";

export default {
  data: {
    name: "ping",
    description: "Replies with Pong!",
    toJSON() {
      return { name: "ping", description: "Replies with Pong!" };
    },
  },
  ownersOnly: false,
  async execute(input: ChatInputCommandInteraction | Message) {
    if (input instanceof Message) {
      await input.reply("🏓 Pong! (prefix command)");
    } else {
      await input.reply("🏓 Pong! (slash command)");
    }
  },
};