Versions in this module Expand all Collapse all v3 v3.0.0 Dec 3, 2023 Changes in this version + const Day + const Hour + const Millisecond + const Minute + const Second + var DefaultFilters = []string + type CPU struct + Cores int + LavalinkLoad float64 + SystemLoad float64 + type ChannelMix struct + LeftToLeft float32 + LeftToRight float32 + RightToLeft float32 + RightToRight float32 + type Distortion struct + CosOffset float32 + CosScale float32 + Offset float32 + Scale float32 + SinOffset float32 + SinScale float32 + TanOffset float32 + TanScale float32 + type Duration int64 + func (d Duration) Days() int64 + func (d Duration) Hours() int64 + func (d Duration) HoursPart() int64 + func (d Duration) Milliseconds() int64 + func (d Duration) MillisecondsPart() int64 + func (d Duration) Minutes() int64 + func (d Duration) MinutesPart() int64 + func (d Duration) Seconds() int64 + func (d Duration) SecondsPart() int64 + func (d Duration) String() string + type Empty struct + type EqBand struct + Band int + Gain float32 + type Equalizer [15]float32 + func (e *Equalizer) UnmarshalJSON(data []byte) error + func (e Equalizer) MarshalJSON() ([]byte, error) + type Error struct + Message string + Path string + Status int + StatusError string + Timestamp Timestamp + Trace string + func (e Error) Error() string + type Event interface + GuildID func() snowflake.ID + Op func() Op + Type func() EventType + type EventType string + const EventTypePlayerPause + const EventTypePlayerResume + const EventTypeTrackEnd + const EventTypeTrackException + const EventTypeTrackStart + const EventTypeTrackStuck + const EventTypeWebSocketClosed + type Exception struct + Cause *string + Message string + Severity Severity + func (e Exception) Error() string + type Filters struct + ChannelMix *ChannelMix + Distortion *Distortion + Equalizer *Equalizer + Karaoke *Karaoke + LowPass *LowPass + PluginFilters map[string]any + Rotation *Rotation + Timescale *Timescale + Tremolo *Tremolo + Vibrato *Vibrato + Volume *Volume + type FrameStats struct + Deficit int + Nulled int + Sent int + type Git struct + Branch string + Commit string + CommitTime Timestamp + type Info struct + BuildTime Timestamp + Filters []string + Git Git + JVM string + Lavaplayer string + Plugins []Plugin + SourceManagers []string + Version Version + type Karaoke struct + FilterBand float32 + FilterWidth float32 + Level float32 + MonoLevel float32 + type LoadResult struct + Data LoadResultData + LoadType LoadType + func (r *LoadResult) UnmarshalJSON(data []byte) error + type LoadResultData interface + type LoadType string + const LoadTypeEmpty + const LoadTypeError + const LoadTypePlaylist + const LoadTypeSearch + const LoadTypeTrack + type LowPass struct + Smoothing float64 + type Memory struct + Allocated int + Free int + Reservable int + Used int + type Message interface + Op func() Op + func UnmarshalMessage(data []byte) (Message, error) + type Op string + const OpEvent + const OpPlayerUpdate + const OpReady + const OpStats + type Player struct + Filters Filters + GuildID snowflake.ID + Paused bool + State PlayerState + Track *Track + Voice VoiceState + Volume int + type PlayerPauseEvent struct + GuildID_ snowflake.ID + func (PlayerPauseEvent) Op() Op + func (PlayerPauseEvent) Type() EventType + func (e PlayerPauseEvent) GuildID() snowflake.ID + type PlayerResumeEvent struct + GuildID_ snowflake.ID + func (PlayerResumeEvent) Op() Op + func (PlayerResumeEvent) Type() EventType + func (e PlayerResumeEvent) GuildID() snowflake.ID + type PlayerState struct + Connected bool + Ping int + Position Duration + Time Timestamp + type PlayerUpdate struct + EndTime *Duration + Filters *Filters + NoReplace bool + Paused *bool + Position *Duration + Track *PlayerUpdateTrack + Voice *VoiceState + Volume *int + func DefaultPlayerUpdate() *PlayerUpdate + func (u *PlayerUpdate) Apply(opts []PlayerUpdateOpt) + type PlayerUpdateMessage struct + GuildID snowflake.ID + State PlayerState + func (PlayerUpdateMessage) Op() Op + type PlayerUpdateOpt func(update *PlayerUpdate) + func WithEncodedTrack(encodedTrack string) PlayerUpdateOpt + func WithEndTime(endTime Duration) PlayerUpdateOpt + func WithFilters(filters Filters) PlayerUpdateOpt + func WithNoReplace(noReplace bool) PlayerUpdateOpt + func WithNullTrack() PlayerUpdateOpt + func WithPaused(paused bool) PlayerUpdateOpt + func WithPosition(position Duration) PlayerUpdateOpt + func WithTrack(track Track) PlayerUpdateOpt + func WithTrackIdentifier(identifier string) PlayerUpdateOpt + func WithTrackUserData(userData any) PlayerUpdateOpt + func WithVoice(voice VoiceState) PlayerUpdateOpt + func WithVolume(volume int) PlayerUpdateOpt + type PlayerUpdateTrack struct + Encoded *json.Nullable[string] + Identifier *string + UserData any + type Players []Player + type Playlist struct + Info PlaylistInfo + PluginInfo RawData + Tracks []Track + type PlaylistInfo struct + Name string + SelectedTrack int + type Plugin struct + Name string + Version string + type Plugins []Plugin + type RawData json.RawMessage + func (p *RawData) UnmarshalJSON(data []byte) error + func (p RawData) MarshalJSON() ([]byte, error) + func (p RawData) String() string + func (p RawData) Unmarshal(v any) error + type ReadyMessage struct + Resumed bool + SessionID string + func (ReadyMessage) Op() Op + type Rotation struct + RotationHz int + type Search []Track + type SearchType string + const SearchTypeSoundCloud + const SearchTypeYouTube + const SearchTypeYouTubeMusic + func (t SearchType) Apply(searchString string) string + type Session struct + Resuming bool + Timeout int + type SessionUpdate struct + Resuming *bool + Timeout *int + type Severity string + const SeverityCommon + const SeverityFault + const SeveritySuspicious + type Stats struct + CPU CPU + FrameStats *FrameStats + Memory Memory + Players int + PlayingPlayers int + Uptime Duration + func (s Stats) Better(stats Stats) bool + type StatsMessage Stats + func (StatsMessage) Op() Op + type Timescale struct + Pitch float64 + Rate float64 + Speed float64 + type Timestamp struct + func Now() Timestamp + func (t *Timestamp) UnmarshalJSON(data []byte) error + func (t Timestamp) MarshalJSON() ([]byte, error) + type Track struct + Encoded string + Info TrackInfo + PluginInfo RawData + UserData RawData + func (t *Track) Scan(value interface{}) error + func (t Track) Value() (driver.Value, error) + func (t Track) WithUserData(userData any) (Track, error) + type TrackEndEvent struct + GuildID_ snowflake.ID + Reason TrackEndReason + Track Track + func (TrackEndEvent) Op() Op + func (TrackEndEvent) Type() EventType + func (e TrackEndEvent) GuildID() snowflake.ID + type TrackEndReason string + const TrackEndReasonCleanup + const TrackEndReasonFinished + const TrackEndReasonLoadFailed + const TrackEndReasonReplaced + const TrackEndReasonStopped + func (e TrackEndReason) MayStartNext() bool + type TrackExceptionEvent struct + Exception Exception + GuildID_ snowflake.ID + Track Track + func (TrackExceptionEvent) Op() Op + func (TrackExceptionEvent) Type() EventType + func (e TrackExceptionEvent) GuildID() snowflake.ID + type TrackInfo struct + ArtworkURL *string + Author string + ISRC *string + Identifier string + IsStream bool + Length Duration + Position Duration + SourceName string + Title string + URI *string + type TrackStartEvent struct + GuildID_ snowflake.ID + Track Track + func (TrackStartEvent) Op() Op + func (TrackStartEvent) Type() EventType + func (e TrackStartEvent) GuildID() snowflake.ID + type TrackStuckEvent struct + GuildID_ snowflake.ID + Threshold Duration + Track Track + func (TrackStuckEvent) Op() Op + func (TrackStuckEvent) Type() EventType + func (e TrackStuckEvent) GuildID() snowflake.ID + type Tremolo struct + Depth float32 + Frequency float32 + type UnknownEvent struct + Data json.RawMessage + GuildID_ snowflake.ID + Type_ EventType + func (UnknownEvent) Op() Op + func (e *UnknownEvent) UnmarshalJSON(data []byte) error + func (e UnknownEvent) GuildID() snowflake.ID + func (e UnknownEvent) MarshalJSON() ([]byte, error) + func (e UnknownEvent) Type() EventType + type UnknownMessage struct + Data json.RawMessage + Op_ Op + func (m *UnknownMessage) UnmarshalJSON(data []byte) error + func (m UnknownMessage) MarshalJSON() ([]byte, error) + func (m UnknownMessage) Op() Op + type Version struct + Major int + Minor int + Patch int + PreRelease string + Semver string + type Vibrato struct + Depth float32 + Frequency float32 + type VoiceState struct + Endpoint string + SessionID string + Token string + type Volume float32 + type WebSocketClosedEvent struct + ByRemote bool + Code int + GuildID_ snowflake.ID + Reason string + func (WebSocketClosedEvent) Op() Op + func (WebSocketClosedEvent) Type() EventType + func (e WebSocketClosedEvent) GuildID() snowflake.ID Other modules containing this package github.com/disgoorg/disgolink/lavalink github.com/disgoorg/disgolink/v2