glitch/types/scope

Types

pub type Scope {
  AnalyticsReadExtensions
  AnalyticsReadGames
  BitsRead
  ChannelManageAds
  ChannelReadAds
  ChannelManageBroadcast
  ChannelReadCharity
  ChannelEditCommercial
  ChannelReadEditors
  ChannelManageExtensions
  ChannelReadGoals
  ChannelReadGuestStar
  ChannelManageGuestStar
  ChannelReadHypeTrain
  ChannelManageModerators
  ChannelReadPolls
  ChannelManagePolls
  ChannelReadPredictions
  ChannelManagePredictions
  ChannelManageRaids
  ChannelReadRedemptions
  ChannelManageRedemptions
  ChannelManageSchedule
  ChannelReadStreamKey
  ChannelReadSubscriptions
  ChannelManageVideos
  ChannelReadVips
  ChannelManageVips
  ClipsEdit
  ModerationRead
  ModeratorManageAnnouncements
  ModeratorManageAutomod
  ModeratorReadAutomodSettings
  ModeratorManageAutomodSettings
  ModeratorManageBannedUsers
  ModeratorReadBlockedTerms
  ModeratorManageBlockedTerms
  ModeratorManageChatMessages
  ModeratorReadChatSettings
  ModeratorManageChatSettings
  ModeratorReadChatters
  ModeratorReadFollowers
  ModeratorReadGuestStar
  ModeratorManageGuestStar
  ModeratorReadShieldMode
  ModeratorManageShieldMode
  ModeratorReadShoutouts
  ModeratorManageShoutouts
  ModeratorReadUnbanRequests
  ModeratorManageUnbanRequests
  UserEdit
  UserEditFollows
  UserReadBlockedUsers
  UserManageBlockedUsers
  UserReadBroadcast
  UserManageChatColor
  UserReadEmail
  UserReadEmotes
  UserReadFollows
  UserReadModeratedChannels
  UserReadSubscriptions
  UserManageWhispers
  ChannelBot
  ChannelModerate
  ChatEdit
  ChatRead
  UserBot
  UserReadChat
  UserWriteChat
  WhispersRead
  WhispersEdit
}

Constructors

  • AnalyticsReadExtensions
  • AnalyticsReadGames
  • BitsRead
  • ChannelManageAds
  • ChannelReadAds
  • ChannelManageBroadcast
  • ChannelReadCharity
  • ChannelEditCommercial
  • ChannelReadEditors
  • ChannelManageExtensions
  • ChannelReadGoals
  • ChannelReadGuestStar
  • ChannelManageGuestStar
  • ChannelReadHypeTrain
  • ChannelManageModerators
  • ChannelReadPolls
  • ChannelManagePolls
  • ChannelReadPredictions
  • ChannelManagePredictions
  • ChannelManageRaids
  • ChannelReadRedemptions
  • ChannelManageRedemptions
  • ChannelManageSchedule
  • ChannelReadStreamKey
  • ChannelReadSubscriptions
  • ChannelManageVideos
  • ChannelReadVips
  • ChannelManageVips
  • ClipsEdit
  • ModerationRead
  • ModeratorManageAnnouncements
  • ModeratorManageAutomod
  • ModeratorReadAutomodSettings
  • ModeratorManageAutomodSettings
  • ModeratorManageBannedUsers
  • ModeratorReadBlockedTerms
  • ModeratorManageBlockedTerms
  • ModeratorManageChatMessages
  • ModeratorReadChatSettings
  • ModeratorManageChatSettings
  • ModeratorReadChatters
  • ModeratorReadFollowers
  • ModeratorReadGuestStar
  • ModeratorManageGuestStar
  • ModeratorReadShieldMode
  • ModeratorManageShieldMode
  • ModeratorReadShoutouts
  • ModeratorManageShoutouts
  • ModeratorReadUnbanRequests
  • ModeratorManageUnbanRequests
  • UserEdit
  • UserEditFollows
  • UserReadBlockedUsers
  • UserManageBlockedUsers
  • UserReadBroadcast
  • UserManageChatColor
  • UserReadEmail
  • UserReadEmotes
  • UserReadFollows
  • UserReadModeratedChannels
  • UserReadSubscriptions
  • UserManageWhispers
  • ChannelBot
  • ChannelModerate
  • ChatEdit
  • ChatRead
  • UserBot
  • UserReadChat
  • UserWriteChat
  • WhispersRead
  • WhispersEdit
pub type ScopeError {
  InvalidScope(String)
  DecodeError(JsonDecodeError)
}

Constructors

  • InvalidScope(String)
  • DecodeError(JsonDecodeError)

Constants

pub const scopes: List(Scope)

Functions

pub fn decoder() -> fn(Dynamic) ->
  Result(Scope, List(DecodeError))
pub fn from_json(
  json_string: String,
) -> Result(Scope, ScopeError)
pub fn from_string(str: String) -> Result(Scope, ScopeError)
pub fn to_json(scope: Scope) -> Json
pub fn to_string(scope: Scope) -> String
Search Document