aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities/suicide.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utilities/suicide.ts')
-rw-r--r--src/commands/utilities/suicide.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts
index d880215..293008c 100644
--- a/src/commands/utilities/suicide.ts
+++ b/src/commands/utilities/suicide.ts
@@ -1,5 +1,5 @@
import { AllowedMentions, BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
-import { MessageEmbed } from 'discord.js';
+import { Embed } from 'discord.js';
export default class SuicideCommand extends BushCommand {
public constructor() {
@@ -18,7 +18,7 @@ export default class SuicideCommand extends BushCommand {
public override async exec(message: BushMessage | BushSlashMessage) {
// stolen from https://github.com/dexbiobot/Zeppelin
- const suicideEmbed = new MessageEmbed()
+ const suicideEmbed = new Embed()
.setTitle('Mental Health Resources')
.setColor(util.colors.red)
.setAuthor({
@@ -26,23 +26,23 @@ export default class SuicideCommand extends BushCommand {
iconURL:
'https://media.discordapp.net/attachments/770256340639416320/854689949193076737/Medical_31-60_974.jpg?width=523&height=523'
})
- .addField(
- '**National Suicide Prevention Hotline (U.S.):**',
- [
+ .addField({
+ 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')
- )
- .addField(
- '**More Support**',
- [
+ })
+ .addField({
+ 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')
- );
+ });
return message.util.send({
embeds: [suicideEmbed],