diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-05 23:41:01 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-05 23:41:01 -0400 |
commit | c3e19b629b1d49b904782b3c21decb804ae7f1d1 (patch) | |
tree | 83ad520600cfa55f7495ea8ff88795f39472265d /src/lib | |
parent | b90149143fbd528531fbbbefbd92471414950537 (diff) | |
download | tanzanite-c3e19b629b1d49b904782b3c21decb804ae7f1d1.tar.gz tanzanite-c3e19b629b1d49b904782b3c21decb804ae7f1d1.tar.bz2 tanzanite-c3e19b629b1d49b904782b3c21decb804ae7f1d1.zip |
fix breaking changes
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/extensions/discord.js/ExtendedGuild.ts | 10 | ||||
-rw-r--r-- | src/lib/utils/BushConstants.ts | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/extensions/discord.js/ExtendedGuild.ts b/src/lib/extensions/discord.js/ExtendedGuild.ts index 88bf5f1..e55851b 100644 --- a/src/lib/extensions/discord.js/ExtendedGuild.ts +++ b/src/lib/extensions/discord.js/ExtendedGuild.ts @@ -661,7 +661,7 @@ export class ExtendedGuild extends Guild { case MessageType.ChannelPinnedMessage: throw new Error('Not implemented yet: MessageType.ChannelPinnedMessage case'); - case MessageType.GuildMemberJoin: { + case MessageType.UserJoin: { const messages = [ '{username} joined the party.', '{username} is here.', @@ -686,15 +686,15 @@ export class ExtendedGuild extends Guild { sendOptions.content = `${emojis.join} ${message}`; break; } - case MessageType.UserPremiumGuildSubscription: + case MessageType.GuildBoost: sendOptions.content = `<:NitroBoost:585558042309820447> ${displayName} just boosted the server${ quote.content ? ` **${quote.content}** times` : '' }!`; break; - case MessageType.UserPremiumGuildSubscriptionTier1: - case MessageType.UserPremiumGuildSubscriptionTier2: - case MessageType.UserPremiumGuildSubscriptionTier3: + case MessageType.GuildBoostTier1: + case MessageType.GuildBoostTier2: + case MessageType.GuildBoostTier3: sendOptions.content = `<:NitroBoost:585558042309820447> ${displayName} just boosted the server${ quote.content ? ` **${quote.content}** times` : '' }! ${quote.guild?.name} has achieved **Level ${quote.type - 8}!**`; diff --git a/src/lib/utils/BushConstants.ts b/src/lib/utils/BushConstants.ts index 8a7bf03..0fd9113 100644 --- a/src/lib/utils/BushConstants.ts +++ b/src/lib/utils/BushConstants.ts @@ -268,7 +268,7 @@ export const mappings = deepLock({ [GuildFeature.Verified]: { name: 'Verified', important: true, emoji: '<:verified:850795049817473066>', weight: 0 }, [GuildFeature.Partnered]: { name: 'Partnered', important: true, emoji: '<:partneredServer:850794851955507240>', weight: 1 }, [GuildFeature.MoreStickers]: { name: 'More Stickers', important: true, emoji: null, weight: 2 }, - 'MORE_EMOJIS': { name: 'More Emoji', important: true, emoji: '<:moreEmoji:850786853497602080>', weight: 3 }, + MORE_EMOJIS: { name: 'More Emoji', important: true, emoji: '<:moreEmoji:850786853497602080>', weight: 3 }, [GuildFeature.Featurable]: { name: 'Featurable', important: true, emoji: '<:featurable:850786776372084756>', weight: 4 }, [GuildFeature.RelayEnabled]: { name: 'Relay Enabled', important: true, emoji: '<:relayEnabled:850790531441229834>', weight: 5 }, [GuildFeature.Discoverable]: { name: 'Discoverable', important: true, emoji: '<:discoverable:850786735360966656>', weight: 6 }, @@ -276,7 +276,7 @@ export const mappings = deepLock({ [GuildFeature.MonetizationEnabled]: { name: 'Monetization Enabled', important: true, emoji: null, weight: 8 }, [GuildFeature.TicketedEventsEnabled]: { name: 'Ticketed Events Enabled', important: true, emoji: null, weight: 9 }, [GuildFeature.PreviewEnabled]: { name: 'Preview Enabled', important: true, emoji: '<:previewEnabled:850790508266913823>', weight: 10 }, - [GuildFeature.Commerce]: { name: 'Store Channels', important: true, emoji: '<:storeChannels:850786692432396338>', weight: 11 }, + COMMERCE: { name: 'Store Channels', important: true, emoji: '<:storeChannels:850786692432396338>', weight: 11 }, [GuildFeature.VanityURL]: { name: 'Vanity URL', important: false, emoji: '<:vanityURL:850790553079644160>', weight: 12 }, [GuildFeature.VIPRegions]: { name: 'VIP Regions', important: false, emoji: '<:VIPRegions:850794697496854538>', weight: 13 }, [GuildFeature.AnimatedIcon]: { name: 'Animated Icon', important: false, emoji: '<:animatedIcon:850774498071412746>', weight: 14 }, @@ -359,7 +359,8 @@ export const mappings = deepLock({ VerifiedDeveloper: '<:earlyVerifiedBotDeveloper:848741079875846174>', CertifiedModerator: '<:discordCertifiedModerator:877224285901582366>', BotHTTPInteractions: 'BotHTTPInteractions', - Spammer: 'Spammer' + Spammer: 'Spammer', + Quarantined: 'Quarantined' }, status: { |