utility.presence: null check custom status emotes
This commit is contained in:
parent
a06894bc86
commit
cb4dee574d
1 changed files with 1 additions and 1 deletions
|
@ -728,7 +728,7 @@ presence.callback = async function (msg, line) {
|
||||||
const activity = target.presence.activities[index];
|
const activity = target.presence.activities[index];
|
||||||
if (activity.type == 4) {
|
if (activity.type == 4) {
|
||||||
let emote = "";
|
let emote = "";
|
||||||
if (activity.emoji.id) {
|
if (activity.emoji?.id) {
|
||||||
emote = `<${activity.emoji.animated ? "a" : ""}:${
|
emote = `<${activity.emoji.animated ? "a" : ""}:${
|
||||||
activity.emoji.name
|
activity.emoji.name
|
||||||
}:${activity.emoji.id}>`;
|
}:${activity.emoji.id}>`;
|
||||||
|
|
Loading…
Reference in a new issue