You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
if (data.originalType === kakao.KnownChatType.REPLY) { try{ const reply = data.attachment(); const uid = reply.src_userId; channel.sendChat(channel.getUserInfo(uid).nickname); } catch(e){log(e)} }
이러한 스크립트를 작성하였는데, 아래와 같은 오류가 뜹니다.
TypeError: Cannot read property 'toString' of undefined.
발생하는 지점은 다음과 getUserInfo 정의 구간입니다.
getUserInfo(user) { return this._userInfoMap.get(user.userId.toString()); }
아시는 분은 해결책을 부탁드립니다.
Beta Was this translation helpful? Give feedback.
All reactions