diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-26 21:53:51 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-26 21:53:51 -0400 |
commit | 921e98369c8a8aa58220a232eb8b711be59f9884 (patch) | |
tree | 1566574bcad21d4c16ddf869b55f20a4665d54cc /src/lib/extensions/discord-akairo | |
parent | b7f254cd426138880318d2ba6a06e8e86ae407bf (diff) | |
download | tanzanite-921e98369c8a8aa58220a232eb8b711be59f9884.tar.gz tanzanite-921e98369c8a8aa58220a232eb8b711be59f9884.tar.bz2 tanzanite-921e98369c8a8aa58220a232eb8b711be59f9884.zip |
start settings command
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 6 |
1 files changed, 1 insertions, 5 deletions
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 } { |