style: change discord embed color to blue (#64A7D1)
This commit is contained in:
parent
24548fcac8
commit
00b902fa8d
1 changed files with 7 additions and 7 deletions
|
|
@ -7,14 +7,14 @@ import type { ServerUpdate } from '../hytale-server/tracker.js'
|
||||||
import type { DiscordEmbed } from './types.js'
|
import type { DiscordEmbed } from './types.js'
|
||||||
import { getBlogUrl, getThumbnailUrl } from '../hytale-blog/tracker.js'
|
import { getBlogUrl, getThumbnailUrl } from '../hytale-blog/tracker.js'
|
||||||
|
|
||||||
const HYTALE_ORANGE = 0xF26430
|
const EMBED_COLOR = 0x64A7D1
|
||||||
const HYTALE_LOGO = 'https://hytale.com/favicon.ico'
|
const HYTALE_LOGO = 'https://hytale.com/favicon.ico'
|
||||||
|
|
||||||
export function formatLauncherEmbed(update: LauncherUpdate): DiscordEmbed {
|
export function formatLauncherEmbed(update: LauncherUpdate): DiscordEmbed {
|
||||||
return {
|
return {
|
||||||
title: 'Launcher Update',
|
title: 'Launcher Update',
|
||||||
description: `New launcher version available`,
|
description: `New launcher version available`,
|
||||||
color: HYTALE_ORANGE,
|
color: EMBED_COLOR,
|
||||||
fields: [
|
fields: [
|
||||||
{ name: 'Version', value: `\`${update.version}\``, inline: true },
|
{ name: 'Version', value: `\`${update.version}\``, inline: true },
|
||||||
{ name: 'Previous', value: `\`${update.previousVersion}\``, inline: true },
|
{ name: 'Previous', value: `\`${update.previousVersion}\``, inline: true },
|
||||||
|
|
@ -39,7 +39,7 @@ export function formatPatchesEmbed(update: PatchesUpdate): DiscordEmbed {
|
||||||
return {
|
return {
|
||||||
title: 'Game Patches Update',
|
title: 'Game Patches Update',
|
||||||
description: `New game patch available for ${update.patchline}`,
|
description: `New game patch available for ${update.patchline}`,
|
||||||
color: HYTALE_ORANGE,
|
color: EMBED_COLOR,
|
||||||
fields,
|
fields,
|
||||||
thumbnail: { url: HYTALE_LOGO },
|
thumbnail: { url: HYTALE_LOGO },
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
|
|
@ -50,7 +50,7 @@ export function formatServerEmbed(update: ServerUpdate): DiscordEmbed {
|
||||||
return {
|
return {
|
||||||
title: 'Server Software Update',
|
title: 'Server Software Update',
|
||||||
description: `New server version for ${update.patchline}`,
|
description: `New server version for ${update.patchline}`,
|
||||||
color: HYTALE_ORANGE,
|
color: EMBED_COLOR,
|
||||||
fields: [
|
fields: [
|
||||||
{ name: 'Patchline', value: `\`${update.patchline}\``, inline: true },
|
{ name: 'Patchline', value: `\`${update.patchline}\``, inline: true },
|
||||||
{ name: 'Version', value: `\`${update.version}\``, inline: true },
|
{ name: 'Version', value: `\`${update.version}\``, inline: true },
|
||||||
|
|
@ -65,7 +65,7 @@ export function formatDownloaderEmbed(update: DownloaderUpdate): DiscordEmbed {
|
||||||
return {
|
return {
|
||||||
title: 'Downloader Update',
|
title: 'Downloader Update',
|
||||||
description: `New downloader version available`,
|
description: `New downloader version available`,
|
||||||
color: HYTALE_ORANGE,
|
color: EMBED_COLOR,
|
||||||
fields: [
|
fields: [
|
||||||
{ name: 'Version', value: `\`${update.version}\``, inline: true },
|
{ name: 'Version', value: `\`${update.version}\``, inline: true },
|
||||||
{ name: 'Previous', value: `\`${update.previousVersion}\``, inline: true },
|
{ name: 'Previous', value: `\`${update.previousVersion}\``, inline: true },
|
||||||
|
|
@ -89,7 +89,7 @@ export function formatPresskitEmbed(update: PresskitUpdate): DiscordEmbed {
|
||||||
return {
|
return {
|
||||||
title: 'Creator Presskit Update',
|
title: 'Creator Presskit Update',
|
||||||
description: `Presskit archive has been updated`,
|
description: `Presskit archive has been updated`,
|
||||||
color: HYTALE_ORANGE,
|
color: EMBED_COLOR,
|
||||||
fields,
|
fields,
|
||||||
thumbnail: { url: HYTALE_LOGO },
|
thumbnail: { url: HYTALE_LOGO },
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
|
|
@ -115,7 +115,7 @@ export function formatBlogEmbed(post: BlogPost): DiscordEmbed {
|
||||||
const embed: DiscordEmbed = {
|
const embed: DiscordEmbed = {
|
||||||
title: post.title,
|
title: post.title,
|
||||||
description: `*by **${post.author}***\n\n[Read the full post](${url})`,
|
description: `*by **${post.author}***\n\n[Read the full post](${url})`,
|
||||||
color: HYTALE_ORANGE,
|
color: EMBED_COLOR,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (imageUrl) {
|
if (imageUrl) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue