diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-28 12:43:42 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-28 12:43:42 -0400 |
commit | 31d339b46b9fc11e50a0cdbf53e937e575531efd (patch) | |
tree | 05148c87a0be4992ad41b1829f17ffb6b75f7a3c /src/commands/utilities/suicide.ts | |
parent | e37904bdf74b2c21d97d4ceb89a2a38a74b08919 (diff) | |
download | tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.gz tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.bz2 tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.zip |
feat: custom stripIndent
Diffstat (limited to 'src/commands/utilities/suicide.ts')
-rw-r--r-- | src/commands/utilities/suicide.ts | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts index 2cc16f0..e4609f2 100644 --- a/src/commands/utilities/suicide.ts +++ b/src/commands/utilities/suicide.ts @@ -1,4 +1,5 @@ import { AllowedMentions, BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; +import { stripIndent } from '#tags'; import { EmbedBuilder } from 'discord.js'; export default class SuicideCommand extends BushCommand { @@ -29,20 +30,18 @@ export default class SuicideCommand extends BushCommand { .addFields([ { name: '**National Suicide Prevention Hotline (U.S.):**', - value: [ - '**Call:** 1-800-273-8255, available 24/7 for emotional support', - '**Text: HOME** to 741741', - 'https://suicidepreventionlifeline.org/chat/', - '', - '**Outside the U.S:** Find a supportive resource on [this Wikipedia list of worldwide crisis hotlines](https://en.wikipedia.org/wiki/List_of_suicide_crisis_lines)' - ].join('\n') + value: stripIndent` + **Call:** 1-800-273-8255, available 24/7 for emotional support + **Text: HOME** to 741741 + https://suicidepreventionlifeline.org/chat/ + + **Outside the U.S:** Find a supportive resource on [this Wikipedia list of worldwide crisis hotlines](https://en.wikipedia.org/wiki/List_of_suicide_crisis_lines)` }, { name: '**More Support**', - value: [ - 'For Substance Abuse Support, Eating Disorder Support & Child Abuse and Domestic Violence:', - "[Click to go to Discord's Health & Safety Page](https://discord.com/safety/360044103771-Mental-health-on-Discord#h_01EGRGT08QSZ5BNCH2E9HN0NYV)" - ].join('\n') + value: stripIndent` + For Substance Abuse Support, Eating Disorder Support & Child Abuse and Domestic Violence: + [Click to go to Discord's Health & Safety Page](https://discord.com/safety/360044103771-Mental-health-on-Discord#h_01EGRGT08QSZ5BNCH2E9HN0NYV)` } ]); |