Skip to content

Commit

Permalink
fix(message): fix whispering normal messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Nov 13, 2021
1 parent 0ebea95 commit ff7be56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/tmi/message.ts
Expand Up @@ -20,9 +20,9 @@ export async function message(type: 'say' | 'whisper' | 'me', username: string |
tmiEmitter.emit('say', username, `/me ${messageToSend}`);
} else {
if (twitch.sendAsReply) {
tmiEmitter.emit('say', username, `/me ${messageToSend}`, { replyTo: messageId });
tmiEmitter.emit('say', username, `${messageToSend}`, { replyTo: messageId });
} else {
tmiEmitter.emit('whisper', username, `/me ${messageToSend}`);
tmiEmitter.emit(type as any, username, `${messageToSend}`);
}
}
}
Expand Down

0 comments on commit ff7be56

Please sign in to comment.