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
- #check_automod_status(options = {}) ⇒ Object
- #get_banned_events(options = {}) ⇒ Object
- #get_banned_users(options = {}) ⇒ Object
- #get_moderator_events(options = {}) ⇒ Object
- #get_moderators(options = {}) ⇒ Object
Instance Method Details
#check_automod_status(options = {}) ⇒ Object
7 8 9 |
# File 'lib/twitch/client/moderation.rb', line 7 def check_automod_status( = {}) initialize_response AutomodMessageStatus, post('moderation/enforcements/status', ) end |
#get_banned_events(options = {}) ⇒ Object
11 12 13 |
# File 'lib/twitch/client/moderation.rb', line 11 def get_banned_events( = {}) initialize_response ModerationEvent, get('moderation/banned/events', ) end |
#get_banned_users(options = {}) ⇒ Object
15 16 17 |
# File 'lib/twitch/client/moderation.rb', line 15 def get_banned_users( = {}) initialize_response UserBan, get('moderation/banned', ) end |
#get_moderator_events(options = {}) ⇒ Object
23 24 25 |
# File 'lib/twitch/client/moderation.rb', line 23 def get_moderator_events( = {}) initialize_response ModerationEvent, get('moderation/moderators/events', ) end |
#get_moderators(options = {}) ⇒ Object
19 20 21 |
# File 'lib/twitch/client/moderation.rb', line 19 def get_moderators( = {}) initialize_response Moderator, get('moderation/moderators', ) end |