pause

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 MockedPauser

type MockedPauser struct {
	mock.Mock
}

MockedPauser is the mocking implementation of Pauser.

func NewMockedPauser

func NewMockedPauser() *MockedPauser

NewMockedPauser returns a new MockedPauser.

func (*MockedPauser) SetPaused

func (p *MockedPauser) SetPaused(guildID string, paused bool) error

SetPaused sets the paused state of a guild's audio player to the passed parameter value.

type Pauser

type Pauser interface {
	// SetPaused sets the paused state of a guild's
	// audio player to the passed parameter value.
	SetPaused(guildID string, paused bool) error
}

Pauser wraps the SetPaused method.

Jump to

Keyboard shortcuts

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