Module: Slack::Web::Api::Endpoints::AppsIcon

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/apps_icon.rb

Instance Method Summary collapse

Instance Method Details

#apps_icon_set(options = {}) ⇒ Object

Sets the app icon

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :app_id (Object)

    The ID of the app whose icon you want to set.

  • :file (file)

    File contents via multipart/form-data.

  • :url (string)

    URL of a publicly hosted image.

Raises:

  • (ArgumentError)

See Also:



20
21
22
23
# File 'lib/slack/web/api/endpoints/apps_icon.rb', line 20

def apps_icon_set(options = {})
  raise ArgumentError, 'Required arguments :app_id missing' if options[:app_id].nil?
  post('apps.icon.set', options)
end