diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-07-14 08:35:02 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-07-14 08:35:02 -0400 |
commit | ac78e887e163f05b5e87db729d8ad2735e112ffc (patch) | |
tree | 724b1ae85884c8f101c393ee701ab9800389f5e5 /src/commands/utilities/highlight-!.ts | |
parent | 3ac0389ec33e6df7ef5c097ea30ed01ae2c782a7 (diff) | |
download | tanzanite-ac78e887e163f05b5e87db729d8ad2735e112ffc.tar.gz tanzanite-ac78e887e163f05b5e87db729d8ad2735e112ffc.tar.bz2 tanzanite-ac78e887e163f05b5e87db729d8ad2735e112ffc.zip |
use deepWriteable from util
Diffstat (limited to 'src/commands/utilities/highlight-!.ts')
-rw-r--r-- | src/commands/utilities/highlight-!.ts | 7 |
1 files changed, 1 insertions, 6 deletions
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<T>(obj: T): DeepWritable<T> { - return obj as DeepWritable<T>; -} export const highlightSubcommands = deepWriteable({ add: { |