From ac78e887e163f05b5e87db729d8ad2735e112ffc Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 14 Jul 2022 08:35:02 -0400 Subject: use deepWriteable from util --- src/commands/utilities/highlight-!.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/commands') diff --git a/src/commands/utilities/highlight-!.ts b/src/commands/utilities/highlight-!.ts index a4b8f42..b93f59a 100644 --- a/src/commands/utilities/highlight-!.ts +++ b/src/commands/utilities/highlight-!.ts @@ -1,11 +1,6 @@ -import { BushCommand, clientSendAndPermCheck, Highlight, HighlightWord, type SlashMessage } from '#lib'; +import { BushCommand, clientSendAndPermCheck, deepWriteable, Highlight, HighlightWord, type SlashMessage } from '#lib'; import { Flag, type ArgumentGeneratorReturn, type SlashOption } from 'discord-akairo'; import { ApplicationCommandOptionType, Constants, type AutocompleteInteraction, type CacheType } from 'discord.js'; -import { DeepWritable } from 'ts-essentials'; - -function deepWriteable(obj: T): DeepWritable { - return obj as DeepWritable; -} export const highlightSubcommands = deepWriteable({ add: { -- cgit