updatevoice

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedVoiceUpdater

type MockedVoiceUpdater struct {
	mock.Mock
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL