usecase

package
v0.0.0-...-9b5ed8b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(filepath string, url string) error

Types

type Usecase

type Usecase interface {
	PlayAudioFile(string, *discordgo.VoiceConnection)
	JoinAndPlayAudioFile(string, *discordgo.Session, *discordgo.MessageCreate, *discordgo.Guild, bool)
	ConnectToVoiceChannel(*discordgo.Session, *discordgo.MessageCreate, *discordgo.Guild, bool) (*discordgo.VoiceConnection, error)
	StopVoice()
	VoiceCommands() *repository.ResponseCMS
}

Usecase interface

func NewVoiceUsecase

func NewVoiceUsecase(mr repository.Repository) Usecase

NewVoiceUsecase new voice usecase

Jump to

Keyboard shortcuts

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