UNPKG

@gary50613/discord.js-command-handler

Version:
22 lines (19 loc) 433 B
const Interaction = require("../../src/base/Interaction") const Discord = require("discord.js") class Ping extends Interaction { constructor() { super( "pong", "取得機器人延遲" ) } async execute(bot, interaction) { let emb = await interaction.reply("pog!") await emb.edit({ embed: new Discord.MessageEmbed() .setTitle("pog!") }) await emb.delete() } } module.exports = Ping