mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Fixed Twitch Power Ups
This commit is contained in:
@@ -710,9 +710,9 @@ async function TwitchCustomPowerUpRedemption(data) {
|
||||
let username = data.user.name;
|
||||
if (data.user.name.toLowerCase() != data.user.login.toLowerCase())
|
||||
username = `${data.user.name} (${data.user.login})`;
|
||||
const powerUpName = data.custom_power_up.title;
|
||||
const cost = data.custom_power_up.bits_cost;
|
||||
const prompt = data.custom_power_up.prompt;
|
||||
const powerUpName = data.customPowerUp.title;
|
||||
const cost = data.customPowerUp.bits;
|
||||
const userInput = data.userInput;
|
||||
const bitIcon = `<img src="icons/badges/twitch-bit.svg" class="platform" style="height: 1em"/>`;
|
||||
|
||||
// Render avatars
|
||||
@@ -725,7 +725,7 @@ async function TwitchCustomPowerUpRedemption(data) {
|
||||
`${powerUpName} ${bitIcon} ${cost}`,
|
||||
'',
|
||||
username,
|
||||
prompt,
|
||||
userInput,
|
||||
twitchPowerUpRedemptionAction,
|
||||
data
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user