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
asyncwhisper(user: string,message: string): Promise<void>{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.`);}returnthis._whisperRateLimiter.request({target: toUserName(user),
message
});}
Expected behavior
When a correct botLevel is set _needToShowWhisperWarning will have a value of false.
The condition check above should therefore only become true if the value of _needToShowWhisperWarning is also true.
Also there's a typo: Pleasae should be Please.
Actual Behavior
The exact opposite happens, which causes a warning to be issued when a correct botLevel is set.
Environment
Version: 4.5.2
The text was updated successfully, but these errors were encountered:
Bug Report
Code
Expected behavior
When a correct
botLevel
is set_needToShowWhisperWarning
will have a value offalse
.The condition check above should therefore only become true if the value of
_needToShowWhisperWarning
is alsotrue
.Also there's a typo:
Pleasae
should bePlease
.Actual Behavior
The exact opposite happens, which causes a warning to be issued when a correct
botLevel
is set.Environment
The text was updated successfully, but these errors were encountered: