Replies: 2 comments
-
chat 안에 id는 없습니다만... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`CLIENT.on('chat', (data, channel) => {
if(data.chat.type == 26 && data.text == '추방'){
const sender = data.getSenderInfo(channel);
const reply = data.attachment();
const id = reply.src_userId;
if(sender.userId == id){
channel.sendChat('본인을 추방 할 수 없습니다.');
}else{
channel.kickUser(data.chat.id);
}
}`
channel.kickUser(data.chat.id); 이부분에서 오류가 나는데 어떤 게 문제인지 도움 주실 수 있을까요??
userId로 kickUser를 사용하려 했던게 문제일까요?
Beta Was this translation helpful? Give feedback.
All reactions