Documentation ¶
Index ¶
- Constants
- func DeleteCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID) error
- func SetCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID, ...) error
- type Chapter
- type ChapterStartedEvent
- type ChaptersLoadedEvent
- type Plugin
- type Segment
- type SegmentCategory
- type SegmentEventListener
- type SegmentSkippedEvent
- type SegmentsLoadedEvent
Constants ¶
View Source
const ( EventTypeSegmentsLoaded = "SegmentsLoaded" EventTypeSegmentSkipped = "SegmentSkipped" EventTypeChaptersLoaded = "ChaptersLoaded" EventTypeChapterStarted = "ChapterStarted" )
View Source
const ( SegmentCategorySponsor = "sponsor" SegmentCategorySelfpromo = "selfpromo" SegmentCategoryInteraction = "interaction" SegmentCategoryIntro = "intro" SegmentCategoryOutro = "outro" SegmentCategoryPreview = "preview" SegmentCategoryMusicOfftopic = "music_offtopic" SegmentCategoryFiller = "filler" )
Variables ¶
This section is empty.
Functions ¶
func DeleteCategories ¶
func DeleteCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID) error
DeleteCategories deletes the categories to skip for the guild.
func SetCategories ¶
func SetCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID, categories []SegmentCategory) error
SetCategories sets the categories to skip for the guild.
Types ¶
type ChapterStartedEvent ¶
type ChapterStartedEvent struct { GuildID_ snowflake.ID `json:"guild_id"` Chapter Chapter `json:"chapter"` }
func (ChapterStartedEvent) GuildID ¶
func (e ChapterStartedEvent) GuildID() snowflake.ID
func (ChapterStartedEvent) Op ¶
func (ChapterStartedEvent) Op() lavalink.Op
func (ChapterStartedEvent) Type ¶
func (ChapterStartedEvent) Type() lavalink.EventType
type ChaptersLoadedEvent ¶
type ChaptersLoadedEvent struct { GuildID_ snowflake.ID `json:"guild_id"` Chapters []Chapter `json:"chapters"` }
func (ChaptersLoadedEvent) GuildID ¶
func (e ChaptersLoadedEvent) GuildID() snowflake.ID
func (ChaptersLoadedEvent) Op ¶
func (ChaptersLoadedEvent) Op() lavalink.Op
func (ChaptersLoadedEvent) Type ¶
func (ChaptersLoadedEvent) Type() lavalink.EventType
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func NewWithLogger ¶
func (*Plugin) EventPlugins ¶
func (p *Plugin) EventPlugins() []disgolink.EventPlugin
type Segment ¶
type Segment struct { Category SegmentCategory `json:"category"` Start lavalink.Duration `json:"start"` End lavalink.Duration `json:"end"` }
type SegmentCategory ¶
type SegmentCategory string
func GetCategories ¶
func GetCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID) ([]SegmentCategory, error)
GetCategories gets the categories to skip for the guild.
type SegmentEventListener ¶
type SegmentEventListener interface { OnSegmentsLoaded(player disgolink.Player, event SegmentsLoadedEvent) OnSegmentSkipped(player disgolink.Player, event SegmentSkippedEvent) }
type SegmentSkippedEvent ¶
type SegmentSkippedEvent struct { GuildID_ snowflake.ID `json:"guild_id"` Segment Segment `json:"segment"` }
func (SegmentSkippedEvent) GuildID ¶
func (e SegmentSkippedEvent) GuildID() snowflake.ID
func (SegmentSkippedEvent) Op ¶
func (SegmentSkippedEvent) Op() lavalink.Op
func (SegmentSkippedEvent) Type ¶
func (SegmentSkippedEvent) Type() lavalink.EventType
type SegmentsLoadedEvent ¶
type SegmentsLoadedEvent struct { GuildID_ snowflake.ID `json:"guild_id"` Segments []Segment `json:"segments"` }
func (SegmentsLoadedEvent) GuildID ¶
func (e SegmentsLoadedEvent) GuildID() snowflake.ID
func (SegmentsLoadedEvent) Op ¶
func (SegmentsLoadedEvent) Op() lavalink.Op
func (SegmentsLoadedEvent) Type ¶
func (SegmentsLoadedEvent) Type() lavalink.EventType
Click to show internal directories.
Click to hide internal directories.