Slack.Web.Apps.Icon (SlackKit v1.0.0-alpha.0)

View Source

Summary

Functions

set(app_id, optional_params \\ %{})

Sets the app icon

API reference

Rate limit: Tier 1: 1+ per minute
Scopes:

View on docs.slack.dev ↗

Required Params

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

Optional Params

  • file - File contents via multipart/form-data
  • url - URL of a publicly hosted image

Errors the API can return:

  • error_bad_format - Icon must be a valid image file.
  • invalid_app - App does not exist.
  • invalid_app_id - App ID is not valid.
  • invalid_icon_size - Icon dimensions must be between 512x512px and 2000x2000px.
  • invalid_parameters - Only one of URL or file can be defined.
  • missing_arguments - One of URL or file must be provided.
  • unable_to_open_file - Error with file upload.

See the Common Errors guide for errors returned by every Web API method.