mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Updated for new payload
This commit is contained in:
@@ -542,8 +542,8 @@ async function TwitchSub(data) {
|
||||
|
||||
// Set the text
|
||||
const username = data.user.name;
|
||||
const subTier = data.sub_tier;
|
||||
const isPrime = data.is_prime;
|
||||
const subTier = data.sub_tier ?? data.subTier;
|
||||
const isPrime = data.is_prime ?? data.isPrime;
|
||||
|
||||
// Render avatars
|
||||
const avatarURL = await GetAvatar(username, 'twitch');
|
||||
|
||||
Reference in New Issue
Block a user