discord

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discord

type Discord struct {
	// contains filtered or unexported fields
}

func New

func New(c DiscordConfig) (*Discord, error)

func (*Discord) Close

func (t *Discord) Close() error

func (*Discord) FindUserVS

func (t *Discord) FindUserVS(userID string) (discordgo.VoiceState, bool)

func (*Discord) GetGuild

func (t *Discord) GetGuild(id string) (discordgo.Guild, error)

func (*Discord) GetUser added in v1.4.0

func (t *Discord) GetUser(id string) (*discordgo.User, error)

func (*Discord) HasSharedGuild added in v1.5.0

func (t *Discord) HasSharedGuild(userID string) (bool, error)

func (*Discord) Open

func (t *Discord) Open() error

func (*Discord) Session

func (t *Discord) Session() *discordgo.Session

func (*Discord) UsersInGuildVoice

func (t *Discord) UsersInGuildVoice(guildID string) ([]string, error)

type DiscordConfig

type DiscordConfig struct {
	Token   string
	OwnerID string
}

Jump to

Keyboard shortcuts

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