aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-29 19:28:16 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-29 19:28:16 -0400
commitf1353ac5735158bca58a50535f43ff1561cf1e07 (patch)
tree6ab6f3b417fb2e091bd0ec8e85d90dd7fc76196e /src/lib/extensions
parent51b9c15e6dddda210476944525b1ca4bd08c796b (diff)
downloadtanzanite-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.ts2
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];