class Twitch::Bot::Message::SlowMode
This class stores the details of a SlowMode
event.
Attributes
channel[R]
status[R]
Public Class Methods
new(status:, channel:)
click to toggle source
# File lib/twitch/bot/message.rb, line 82 def initialize(status:, channel:) @status = status @channel = channel @type = :slow_mode end
Public Instance Methods
enabled?()
click to toggle source
# File lib/twitch/bot/message.rb, line 88 def enabled? status.to_i.positive? end