Versions in this module Expand all Collapse all v1 v1.0.0 Dec 3, 2023 Changes in this version + const EventTypeChapterStarted + const EventTypeChaptersLoaded + const EventTypeSegmentSkipped + const EventTypeSegmentsLoaded + const SegmentCategoryFiller + const SegmentCategoryInteraction + const SegmentCategoryIntro + const SegmentCategoryMusicOfftopic + const SegmentCategoryOutro + const SegmentCategoryPreview + const SegmentCategorySelfpromo + const SegmentCategorySponsor + func DeleteCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID) error + func SetCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID, ...) error + type Chapter struct + Duration lavalink.Duration + End lavalink.Duration + Name string + Start lavalink.Duration + type ChapterStartedEvent struct + Chapter Chapter + GuildID_ snowflake.ID + func (ChapterStartedEvent) Op() lavalink.Op + func (ChapterStartedEvent) Type() lavalink.EventType + func (e ChapterStartedEvent) GuildID() snowflake.ID + type ChaptersLoadedEvent struct + Chapters []Chapter + GuildID_ snowflake.ID + func (ChaptersLoadedEvent) Op() lavalink.Op + func (ChaptersLoadedEvent) Type() lavalink.EventType + func (e ChaptersLoadedEvent) GuildID() snowflake.ID + type Plugin struct + func New() *Plugin + func NewWithLogger(logger *slog.Logger) *Plugin + func (p *Plugin) EventPlugins() []disgolink.EventPlugin + func (p *Plugin) Name() string + func (p *Plugin) Version() string + type Segment struct + Category SegmentCategory + End lavalink.Duration + Start lavalink.Duration + type SegmentCategory string + func GetCategories(client disgolink.RestClient, sessionID string, guildID snowflake.ID) ([]SegmentCategory, error) + type SegmentEventListener interface + OnSegmentSkipped func(player disgolink.Player, event SegmentSkippedEvent) + OnSegmentsLoaded func(player disgolink.Player, event SegmentsLoadedEvent) + type SegmentSkippedEvent struct + GuildID_ snowflake.ID + Segment Segment + func (SegmentSkippedEvent) Op() lavalink.Op + func (SegmentSkippedEvent) Type() lavalink.EventType + func (e SegmentSkippedEvent) GuildID() snowflake.ID + type SegmentsLoadedEvent struct + GuildID_ snowflake.ID + Segments []Segment + func (SegmentsLoadedEvent) Op() lavalink.Op + func (SegmentsLoadedEvent) Type() lavalink.EventType + func (e SegmentsLoadedEvent) GuildID() snowflake.ID