mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
19 lines
886 B
TypeScript
19 lines
886 B
TypeScript
import { ChatInputCommandInteraction, PermissionsString } from 'discord.js';
|
|||
|
|
import { RateLimiter } from 'discord.js-rate-limiter';
|
||
|
|
|
||
|
|
import { Language } from '../../models/enum-helpers/index.js';
|
||
|
|
import { EventData } from '../../models/internal-models.js';
|
||
|
|
import { Lang } from '../../services/index.js';
|
||
|
|
import { InteractionUtils } from '../../utils/index.js';
|
||
|
|
import { Command, CommandDeferType } from '../index.js';
|
||
|
|
|
||
|
|
export class TestCommand implements Command {
|
||
|
|
public names = [Lang.getRef('chatCommands.test', Language.Default)];
|
||
|
|
public cooldown = new RateLimiter(1, 5000);
|
||
|
|
public deferType = CommandDeferType.PUBLIC;
|
||
|
|
public requireClientPerms: PermissionsString[] = [];
|
||
|
|
|
||
|
|
public async execute(intr: ChatInputCommandInteraction, data: EventData): Promise<void> {
|
||
|
|
await InteractionUtils.send(intr, Lang.getEmbed('displayEmbeds.test', data.lang));
|
||
|
|
}
|
||
|
|
}
|