diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-29 19:28:16 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-29 19:28:16 -0400 |
commit | f1353ac5735158bca58a50535f43ff1561cf1e07 (patch) | |
tree | 6ab6f3b417fb2e091bd0ec8e85d90dd7fc76196e /src/lib/extensions | |
parent | 51b9c15e6dddda210476944525b1ca4bd08c796b (diff) | |
download | tanzanite-f1353ac5735158bca58a50535f43ff1561cf1e07.tar.gz tanzanite-f1353ac5735158bca58a50535f43ff1561cf1e07.tar.bz2 tanzanite-f1353ac5735158bca58a50535f43ff1561cf1e07.zip |
fix some jankery
Diffstat (limited to 'src/lib/extensions')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index ef51b63..4d565e4 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -999,7 +999,7 @@ export class BushClientUtil extends ClientUtil { /** * Add or remove an item from an array. All duplicates will be removed. */ - public addOrRemoveFromArray(action: 'add' | 'remove', array: any[], value: any): any[] { + public addOrRemoveFromArray<T extends any>(action: 'add' | 'remove', array: T[], value: T): T[] { const set = new Set(array); action === 'add' ? set.add(value) : set.delete(value); return [...set]; |