Module: Slack::Web::Api::Endpoints::AdminEmoji
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_emoji.rb
Instance Method Summary collapse
-
#admin_emoji_add(options = {}) ⇒ Object
Add an emoji.
-
#admin_emoji_addAlias(options = {}) ⇒ Object
Add an emoji alias.
-
#admin_emoji_list(options = {}) ⇒ Object
List emoji for an Enterprise Grid organization.
-
#admin_emoji_remove(options = {}) ⇒ Object
Remove an emoji across an Enterprise Grid organization.
-
#admin_emoji_rename(options = {}) ⇒ Object
Rename an emoji.
Instance Method Details
#admin_emoji_add(options = {}) ⇒ Object
Add an emoji.
18 19 20 21 22 |
# File 'lib/slack/web/api/endpoints/admin_emoji.rb', line 18 def admin_emoji_add( = {}) throw ArgumentError.new('Required arguments :name missing') if [:name].nil? throw ArgumentError.new('Required arguments :url missing') if [:url].nil? post('admin.emoji.add', ) end |
#admin_emoji_addAlias(options = {}) ⇒ Object
Add an emoji alias.
33 34 35 36 37 |
# File 'lib/slack/web/api/endpoints/admin_emoji.rb', line 33 def admin_emoji_addAlias( = {}) throw ArgumentError.new('Required arguments :alias_for missing') if [:alias_for].nil? throw ArgumentError.new('Required arguments :name missing') if [:name].nil? post('admin.emoji.addAlias', ) end |
#admin_emoji_list(options = {}) ⇒ Object
List emoji for an Enterprise Grid organization.
48 49 50 51 52 53 54 55 56 |
# File 'lib/slack/web/api/endpoints/admin_emoji.rb', line 48 def admin_emoji_list( = {}) if block_given? Pagination::Cursor.new(self, :admin_emoji_list, ).each do |page| yield page end else post('admin.emoji.list', ) end end |
#admin_emoji_remove(options = {}) ⇒ Object
Remove an emoji across an Enterprise Grid organization
65 66 67 68 |
# File 'lib/slack/web/api/endpoints/admin_emoji.rb', line 65 def admin_emoji_remove( = {}) throw ArgumentError.new('Required arguments :name missing') if [:name].nil? post('admin.emoji.remove', ) end |
#admin_emoji_rename(options = {}) ⇒ Object
Rename an emoji.
79 80 81 82 83 |
# File 'lib/slack/web/api/endpoints/admin_emoji.rb', line 79 def admin_emoji_rename( = {}) throw ArgumentError.new('Required arguments :name missing') if [:name].nil? throw ArgumentError.new('Required arguments :new_name missing') if [:new_name].nil? post('admin.emoji.rename', ) end |