Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockedVoiceUpdater ¶
MockedVoiceUpdater is the mocking implementation of VoiceUpdater.
func NewMockedVoiceUpdater ¶
func NewMockedVoiceUpdater() *MockedVoiceUpdater
NewMockedVoiceUpdater returns a new MockedVoiceUpdater.
func (*MockedVoiceUpdater) UpdateVoice ¶
func (u *MockedVoiceUpdater) UpdateVoice(guildID string, sessionID, token, endpoint string) error
UpdateVoice is sent when the voice server of a guild has been updated. This method must be performed to play a track. See: https://discord.com/developers/docs/topics/gateway#voice-server-update
type VoiceUpdater ¶
type VoiceUpdater interface { // UpdateVoice is sent when the voice server of a guild // has been updated. // This method must be performed to play a track. // See: https://discord.com/developers/docs/topics/gateway#voice-server-update UpdateVoice(guildID string, sessionID, token, endpoint string) error }
VoiceUpdater wraps the UpdateVoice method.
Click to show internal directories.
Click to hide internal directories.