Fixed 'TwitchRewardRedemption' for SB v1.1.0a

This commit is contained in:
nutty
2026-08-27 10:34:30 +10:00
parent c1f0b0dbae
commit 60764eea75
3 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -687,14 +687,14 @@ async function TwitchRewardRedemption(data) {
if (!showTwitchChannelPointRedemptions)
return;
const username = data.user_name;
const username = data.user_name ?? data.user.name;
const rewardName = data.reward.title;
const cost = data.reward.cost;
const userInput = data.user_input;
const userInput = data.user_input ?? data.userInput;
const channelPointIcon = `<img src="icons/badges/twitch-channel-point.png" class="platform" style="height: 1em"/>`;
// Render avatars
const avatarURL = await GetAvatar(data.user_login, 'twitch');
const avatarURL = await GetAvatar(data.user_login ?? data.user.login, 'twitch');
UpdateAlertBox(
'twitch',