aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-28 12:43:42 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-28 12:43:42 -0400
commit31d339b46b9fc11e50a0cdbf53e937e575531efd (patch)
tree05148c87a0be4992ad41b1829f17ffb6b75f7a3c /src/listeners
parente37904bdf74b2c21d97d4ceb89a2a38a74b08919 (diff)
downloadtanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.gz
tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.bz2
tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.zip
feat: custom stripIndent
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/bush/supportThread.ts8
-rw-r--r--src/listeners/commands/commandError.ts2
-rw-r--r--src/listeners/contextCommands/contextCommandError.ts2
3 files changed, 7 insertions, 5 deletions
diff --git a/src/listeners/bush/supportThread.ts b/src/listeners/bush/supportThread.ts
index c3294ef..e809176 100644
--- a/src/listeners/bush/supportThread.ts
+++ b/src/listeners/bush/supportThread.ts
@@ -1,4 +1,5 @@
import { BushListener, BushTextChannel, type BushClientEvents } from '#lib';
+import { stripIndent } from '#tags';
import assert from 'assert';
import { EmbedBuilder, MessageType, PermissionFlagsBits } from 'discord.js';
@@ -43,10 +44,11 @@ export default class SupportThreadListener extends BushListener {
const embed = new EmbedBuilder()
.setTitle('NotEnoughUpdates Support')
.setDescription(
- `Welcome to Moulberry Bush Support:tm:
+ stripIndent`
+ Welcome to Moulberry Bush Support:tm:
-Please make sure you have the latest version found in <#693586404256645231>.
-Additionally if you need help installing the mod be sure to read <#737444942724726915> for a guide on how to do so.`
+ Please make sure you have the latest version found in <#693586404256645231>.
+ Additionally if you need help installing the mod be sure to read <#737444942724726915> for a guide on how to do so.`
)
.setColor(util.colors.Blurple);
void thread
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts
index 895cff0..6d669a1 100644
--- a/src/listeners/commands/commandError.ts
+++ b/src/listeners/commands/commandError.ts
@@ -136,7 +136,7 @@ export default class CommandErrorListener extends BushListener {
}n error occurred. Please give the developers code ${util.format.input(`${options.errorNum}`)}.`
);
}
- const description = new Array<string>();
+ const description: string[] = [];
if (options.type === 'command-log') {
description.push(
diff --git a/src/listeners/contextCommands/contextCommandError.ts b/src/listeners/contextCommands/contextCommandError.ts
index 86cbac8..45e1114 100644
--- a/src/listeners/contextCommands/contextCommandError.ts
+++ b/src/listeners/contextCommands/contextCommandError.ts
@@ -101,7 +101,7 @@ export default class ContextCommandErrorListener extends BushListener {
}n error occurred. Please give the developers code ${util.format.input(`${options.errorNum}`)}.`
);
}
- const description = new Array<string>();
+ const description: string[] = [];
if (options.type === 'command-log') {
description.push(