Module: Twitch::Client::Moderation

Included in:
Twitch::Client
Defined in:
lib/twitch/client/moderation.rb

Overview

API methods for stream moderation

Instance Method Summary collapse

Instance Method Details

#check_automod_status(options = {}) ⇒ Object



7
8
9
# File 'lib/twitch/client/moderation.rb', line 7

def check_automod_status(options = {})
  initialize_response AutomodMessageStatus, post('moderation/enforcements/status', options)
end

#get_banned_events(options = {}) ⇒ Object



11
12
13
# File 'lib/twitch/client/moderation.rb', line 11

def get_banned_events(options = {})
  initialize_response ModerationEvent, get('moderation/banned/events', options)
end

#get_banned_users(options = {}) ⇒ Object



15
16
17
# File 'lib/twitch/client/moderation.rb', line 15

def get_banned_users(options = {})
  initialize_response UserBan, get('moderation/banned', options)
end

#get_moderator_events(options = {}) ⇒ Object



23
24
25
# File 'lib/twitch/client/moderation.rb', line 23

def get_moderator_events(options = {})
  initialize_response ModerationEvent, get('moderation/moderators/events', options)
end

#get_moderators(options = {}) ⇒ Object



19
20
21
# File 'lib/twitch/client/moderation.rb', line 19

def get_moderators(options = {})
  initialize_response Moderator, get('moderation/moderators', options)
end