import { Interaction } from 'detritus-client' ; import { editOrReply } from '../../../utils' ; import { BaseSlashCommand } from '../basecommand' ; export const COMMAND_NAME = 'ping' ; export default class PingCommand extends BaseSlashCommand { description = 'Ping' ; name = COMMAND_NAME ; async run ( context ) { const { gateway , rest } = await context . client . ping ( ) ; return editOrReply ( context , `pong! (gateway: ${ gateway }ms) (rest: ${ rest }ms)` ) ; } }