Skip to content

Commit

Permalink
Fix typo & false warning condition check in ChatClient.whisper()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rydann committed Mar 29, 2021
1 parent b84821d commit d171697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/twitch-chat-client/src/ChatClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2227,11 +2227,11 @@ export class ChatClient extends IrcClient {
* @param message The message to send.
*/
async whisper(user: string, message: string): Promise<void> {
if (!this._needToShowWhisperWarning) {
if (this._needToShowWhisperWarning) {
this._needToShowWhisperWarning = false;
this._chatLogger.warn(
`You did not set a botLevel option.
Pleasae note that your whispers might not arrive reliably if your bot is not a known or verified bot.`
Please note that your whispers might not arrive reliably if your bot is not a known or verified bot.`
);
}
return this._whisperRateLimiter.request({
Expand Down

0 comments on commit d171697

Please sign in to comment.