Skip to content

Commit

Permalink
🚑 Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
d2n0s4ur committed Feb 13, 2024
1 parent bef7a6a commit f24d38c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@d2n0s4ur/chzzk-chat",
"version": "1.2.1",
"version": "1.2.2",
"description": "chzzk-chat: node.js 개발자를 위한 chzzk 채팅 & 후원 비공식 라이브러리",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/chzzkChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ChzzkChat {
case 93101: // default message
if (!this.messageHandler) return;
this.messageHandler(
this.parseBadgeUrl(profile.activityBadges as string[]),
this.parseBadgeUrl(profile ? profile.activityBadges : undefined),
profile.nickname,
msg.msgStatusType === "CBOTBLIND"
? "클린봇에 의해 삭제된 메시지입니다."
Expand All @@ -131,7 +131,7 @@ export class ChzzkChat {
const extras = JSON.parse(data.bdy[0].extras);
if (!this.donationHandler) return;
this.donationHandler(
this.parseBadgeUrl(profile.activityBadges as string[]),
this.parseBadgeUrl(profile ? profile.activityBadges : undefined),
msg.uid !== "anonymous" ? profile.nickname : "익명의 후원자",
msg.msg,
msg.uid === "anonymous",
Expand Down

0 comments on commit f24d38c

Please sign in to comment.