Documentation ¶
Index ¶
- Constants
- Variables
- type ApiKey
- type AuthLoginResponse
- type Capabilities
- type CreateSoundRequest
- type Event
- type EventAuthPromptPayload
- type EventAuthRequest
- type EventErrorPayload
- type EventStatePayload
- type EventType
- type EventVoiceJoinPayload
- type FastTrigger
- type GuildFilters
- type GuildInfo
- type ImportResult
- type OTAResponse
- type PlaybackLogEntry
- type PlaybackStats
- type SetVolumeRequest
- type SortOrder
- type Sound
- type SoundImportError
- type SoundUploadResponse
- type StateStats
- type StatusModel
- type StatusWithReservation
- type TwitchAPIState
- type TwitchSettings
- type TwitchState
- type UpdateSoundRequest
- type User
- type UserSlim
- type YouTubeDL
Constants ¶
View Source
const ( SortOrderName = SortOrder("name") SortOrderCreated = SortOrder("created") )
View Source
const ( EventSoundCreated = "soundcreated" EventSoundUpdated = "soundupdated" EventSoundDeleted = "sounddeleted" EventVolumeUpdated = "volumeupdated" EventGuildFilterUpdated = "guildfilterupdated" EventSenderController = "controller" EventSenderPlayer = "player" )
Variables ¶
View Source
var ( StatusOK = StatusModel{Status: http.StatusOK, Message: "Ok"} StatusCreated = StatusModel{Status: http.StatusCreated, Message: "Created"} )
Functions ¶
This section is empty.
Types ¶
type AuthLoginResponse ¶
type Capabilities ¶ added in v1.5.0
type Capabilities []string
func (Capabilities) Add ¶ added in v1.5.0
func (t Capabilities) Add(cap string, enabled ...bool) Capabilities
type CreateSoundRequest ¶
type Event ¶
type EventAuthPromptPayload ¶
type EventAuthRequest ¶
type EventAuthRequest struct {
Token string `json:"token"`
}
type EventErrorPayload ¶
type EventStatePayload ¶
type EventStatePayload struct { EventVoiceJoinPayload Connected bool `json:"connected"` Joined bool `json:"joined"` IsAdmin bool `json:"is_admin"` }
type EventVoiceJoinPayload ¶
type EventVoiceJoinPayload struct { Volume int `json:"volume,omitempty"` Filters GuildFilters `json:"filters,omitempty"` Guild GuildInfo `json:"guild,omitempty"` }
type FastTrigger ¶
type FastTrigger struct {
FastTrigger string `json:"fast_trigger"`
}
type GuildFilters ¶
func (GuildFilters) Check ¶
func (t GuildFilters) Check() error
func (*GuildFilters) Sanitize ¶
func (t *GuildFilters) Sanitize()
type ImportResult ¶ added in v1.4.0
type ImportResult struct { Successful []string `json:"successful"` Failed []SoundImportError `json:"failed"` }
type OTAResponse ¶
type PlaybackLogEntry ¶
type PlaybackStats ¶
type SetVolumeRequest ¶
type SetVolumeRequest struct {
Volume int `json:"volume"`
}
type Sound ¶
type SoundImportError ¶ added in v1.4.0
type SoundUploadResponse ¶
type StateStats ¶
type StatusModel ¶
type StatusWithReservation ¶ added in v1.5.0
type StatusWithReservation struct { StatusModel Ratelimit ratelimit.Reservation `json:"ratelimit"` }
type TwitchAPIState ¶ added in v1.5.0
type TwitchSettings ¶ added in v1.5.0
type TwitchSettings struct { TwitchUserName string `json:"twitch_user_name"` Prefix string `json:"prefix"` RateLimit struct { Burst int `json:"burst"` ResetSeconds int `json:"reset_seconds"` } `json:"ratelimit"` Filters GuildFilters `json:"filters"` Blocklist []string `json:"blocklist"` UserID string `json:"userid,omitempty"` }
type TwitchState ¶ added in v1.5.0
type TwitchState struct { TwitchSettings Capable bool `json:"capable"` Connected bool `json:"connected"` }
type UpdateSoundRequest ¶
type UpdateSoundRequest struct {
Sound
}
type User ¶
type User struct { discordgo.User AvatarURL string `json:"avatar_url"` IsOwner bool `json:"is_owner"` }
func UserFromUser ¶
Click to show internal directories.
Click to hide internal directories.