updatevolume

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 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 MockedVolumeUpdater

type MockedVolumeUpdater struct {
	mock.Mock
}

MockedVolumeUpdater is the mock implementation of VolumeUpdater.

func NewMockedVolumeUpdater

func NewMockedVolumeUpdater() *MockedVolumeUpdater

NewMockedVolumeUpdater returns a new MockedVolumeUpdater.

func (*MockedVolumeUpdater) UpdateVolume

func (u *MockedVolumeUpdater) UpdateVolume(guildID string, volume uint) error

UpdateVolume changes the volume of a guild's audio player.

type VolumeUpdater

type VolumeUpdater interface {
	// UpdateVolume changes the volume of a guild's
	// audio player.
	UpdateVolume(guildID string, volume uint) error
}

VolumeUpdater wraps the UpdateVolume method.

Jump to

Keyboard shortcuts

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