Exception: Slacks::NotInChannelError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/slacks/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(channel) ⇒ NotInChannelError

Returns a new instance of NotInChannelError.



88
89
90
# File 'lib/slacks/errors.rb', line 88

def initialize(channel)
  super "The bot is not in the channel #{channel} and cannot reply"
end