import { ApplicationCommandData , CommandInteraction , PermissionString } from 'discord.js' ; import { RateLimiter } from 'discord.js-rate-limiter' ; import { Command , CommandDeferType } from '.' ; import { EventData } from '../models/internal-models' ; import { Lang } from '../services' ; import { MessageUtils } from '../utils' ; export class TestCommand implements Command { public metadata : ApplicationCommandData = { name : Lang . getCom ( 'commands.test' ) , description : Lang . getRef ( 'commandDescs.test' , Lang . Default ) , } ; public cooldown = new RateLimiter ( 1 , 5000 ) ; public deferType = CommandDeferType . PUBLIC ; public requireDev = false ; public requireGuild = false ; public requireClientPerms : PermissionString [ ] = [ ] ; public requireUserPerms : PermissionString [ ] = [ ] ; public async execute ( intr , data ) { await MessageUtils . sendIntr ( intr , Lang . getEmbed ( 'displayEmbeds.test' , data . lang ( ) ) ) ; } }