import type { HelpObj } from '../../structures/commandhandler' ; import type ReknownClient from '../../structures/client' ; import type { Message , PermissionString } from 'discord.js' ; export async function run ( client , message , args ) { const msg = await message . channel . send ( `Pong! :heartbeat: \`${ Math . round ( client . ws . ping * 10 ) / 10 }ms\`` ) ; msg . edit ( `${ msg . content } :stopwatch: \`${ msg . createdTimestamp - message . createdTimestamp }ms\`` ) ; } export const help = { aliases : [ 'pong' ] , category : 'Miscellaneous' , desc : 'Displays the ping of the bot.' , dm : true , togglable : false , usage : 'ping' } ; export const memberPerms = [ ] ; export const permissions = [ ] ;