mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
• Fixed Twemoji rendering
• Fixed 'undefined' Kick channel point redeems
This commit is contained in:
@@ -276,6 +276,8 @@ function ConstructMessageFromParts(parts) {
|
|||||||
return ` <img src="${part.image}" alt="${part.text}" title="${part.text}" class="emote"> `;
|
return ` <img src="${part.image}" alt="${part.text}" title="${part.text}" class="emote"> `;
|
||||||
if (!part.type)
|
if (!part.type)
|
||||||
return part.text;
|
return part.text;
|
||||||
|
if (part.source == 'Twemoji')
|
||||||
|
return part.text;
|
||||||
|
|
||||||
switch (part.type)
|
switch (part.type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2616,7 +2616,7 @@ async function KickRewardRedeemed(data) {
|
|||||||
// Set the text
|
// Set the text
|
||||||
const username = data.username;
|
const username = data.username;
|
||||||
const rewardName = data.reward_title;
|
const rewardName = data.reward_title;
|
||||||
const userInput = data.userInput;
|
const userInput = data.user_input;
|
||||||
|
|
||||||
titleDiv.innerHTML = `${username} redeemed ${rewardName}`;
|
titleDiv.innerHTML = `${username} redeemed ${rewardName}`;
|
||||||
contentDiv.innerText = `${userInput}`;
|
contentDiv.innerText = `${userInput}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user