aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-26 21:53:51 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-26 21:53:51 -0400
commit921e98369c8a8aa58220a232eb8b711be59f9884 (patch)
tree1566574bcad21d4c16ddf869b55f20a4665d54cc /src/lib/extensions/discord-akairo
parentb7f254cd426138880318d2ba6a06e8e86ae407bf (diff)
downloadtanzanite-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.ts6
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 } {