From 921e98369c8a8aa58220a232eb8b711be59f9884 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 26 Aug 2021 21:53:51 -0400 Subject: start settings command --- src/lib/extensions/discord-akairo/BushClientUtil.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/lib/extensions') diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index da98dac..ef51b63 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -1012,11 +1012,7 @@ export class BushClientUtil extends ClientUtil { * @param surroundChar2 - The character placed in the end of the element. Defaults to `surroundChar1`. */ public surroundArray(array: string[], surroundChar1: string, surroundChar2?: string): string[] { - const newArray: string[] = []; - array.forEach((a) => { - newArray.push(`${surroundChar1}${a}${surroundChar2 ?? surroundChar1}`); - }); - return newArray; + return array.map((a) => `${surroundChar1}${a}${surroundChar2 ?? surroundChar1}`); } public parseDuration(content: string, remove = true): { duration: number; contentWithoutTime: string | null } { -- cgit