feat: custom periods for /stats and /tankstats

This commit is contained in:
TresAbhi committed 2023-06-18 01:56:21 +00:00
1 parent 78424c1535
commit e0c1db2a0b
14 files changed
+125 -49

No files matched your search

+2 -1
View File
@@ -12,6 +12,7 @@ import {
RESTPostAPIChatInputApplicationCommandsJSONBody,
Routes,
SlashCommandBuilder,
SlashCommandSubcommandsOnlyBuilder,
} from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
import debug from '../commands/debug.js';
@@ -46,7 +47,7 @@ export type CommandRegistry = {
inProduction: boolean;
inPublic: boolean;
command: Omit<SlashCommandBuilder, 'addSubcommand' | 'addSubcommandGroup'>;
command: SlashCommandBuilder | SlashCommandSubcommandsOnlyBuilder;
autocomplete?: (interaction: AutocompleteInteraction<CacheType>) => void;
} & (
| {