dgclient

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordGoClient

type DiscordGoClient struct {
	Session *discordgo.Session
	// contains filtered or unexported fields
}

func GetClient

func GetClient(params DiscordGoClientParams) *DiscordGoClient

func (*DiscordGoClient) Connect

func (d *DiscordGoClient) Connect()

func (*DiscordGoClient) Disconnect

func (d *DiscordGoClient) Disconnect()

func (*DiscordGoClient) GetOnMessageHandler

func (client *DiscordGoClient) GetOnMessageHandler() func(*discordgo.Session, *discordgo.MessageCreate)

func (*DiscordGoClient) GetOnReactionAddHandler

func (client *DiscordGoClient) GetOnReactionAddHandler() func(*discordgo.Session, *discordgo.MessageReactionAdd)

func (*DiscordGoClient) GetOnReactionRemoveHandler

func (client *DiscordGoClient) GetOnReactionRemoveHandler() func(*discordgo.Session, *discordgo.MessageReactionRemove)

type DiscordGoClientParams

type DiscordGoClientParams struct {
	Token            string
	RoleMessage      string
	RoleChannel      string
	RoleAddRoleID    string
	RoleRemoveRoleID string
	DB               *pgdb.ReactRolesDatabase `ignored:"true"`
}

type RoleCommandParams

type RoleCommandParams struct {
	Session   *discordgo.Session
	Message   *discordgo.MessageCreate
	Client    *DiscordGoClient
	Action    string
	RoleName  string
	EmojiName string
	Color     int
}

Jump to

Keyboard shortcuts

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