Method: Slack::Endpoint::Channels#channels_leave

Defined in:
lib/slack/endpoint/channels.rb

#channels_leave(options = {}) ⇒ Object

Leaves a channel.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :channel (Object)

    Channel to leave

See Also:



127
128
129
130
# File 'lib/slack/endpoint/channels.rb', line 127

def channels_leave(options={})
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
  post("channels.leave", options)
end