Skip to content

Commit

Permalink
updated default system messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Jul 3, 2024
1 parent fb9ff0d commit 9fe71cd
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/app/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,16 +530,8 @@ const defaultSystemMessages: SystemMessages = {
allowedMentions,
embeds: [
new discord.EmbedBuilder()
.setTitle(title ? `${getSystemEmoji("success")} ${title}` : null)
.setAuthor(
author
? {
name: title
? author.name
: `${getSystemEmoji("success")} ${author.name}`,
}
: null,
)
.setTitle(title ?? null)
.setAuthor(author ?? null)
.setDescription(
description
? title || author
Expand Down Expand Up @@ -582,16 +574,8 @@ const defaultSystemMessages: SystemMessages = {
allowedMentions,
embeds: [
new discord.EmbedBuilder()
.setTitle(title ? `${getSystemEmoji("error")} ${title}` : null)
.setAuthor(
author
? {
name: title
? author.name
: `${getSystemEmoji("error")} ${author.name}`,
}
: null,
)
.setTitle(title ?? null)
.setAuthor(author ?? null)
.setDescription(
description
? title || author
Expand Down

0 comments on commit 9fe71cd

Please sign in to comment.