From a26d11d832d900bb4c8ca943e116bf9aef5da61e Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 17 Nov 2022 21:04:52 +0100 Subject: [PATCH] bridge boost level up messages --- bridge/src/discord/events.ts | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/bridge/src/discord/events.ts b/bridge/src/discord/events.ts index a165864..765be37 100644 --- a/bridge/src/discord/events.ts +++ b/bridge/src/discord/events.ts @@ -518,13 +518,35 @@ async function renderSystemMessage( "\\*" )}** joined the server`; case "USER_PREMIUM_GUILD_SUBSCRIPTION": - case "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1": - case "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2": - case "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3": return `:01GJ39CX4H8KJEFF63ZT744S24: **${message.author.username.replace( /\*/g, "\\*" )}** just boosted the server!`; + + case "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1": + return `:01GJ39CX4H8KJEFF63ZT744S24: **${message.author.username.replace( + /\*/g, + "\\*" + )}** just boosted the server! ${message.guild?.name.replace( + /\*/g, + "\\*" + )} has achieved **Level 1!**`; + case "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2": + return `:01GJ39CX4H8KJEFF63ZT744S24: **${message.author.username.replace( + /\*/g, + "\\*" + )}** just boosted the server! ${message.guild?.name.replace( + /\*/g, + "\\*" + )} has achieved **Level 2!**`; + case "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3": + return `:01GJ39CX4H8KJEFF63ZT744S24: **${message.author.username.replace( + /\*/g, + "\\*" + )}** just boosted the server! ${message.guild?.name.replace( + /\*/g, + "\\*" + )} has achieved **Level 3!**`; default: return undefined; }