mpbf_discord

package module
v0.0.0-...-e444ce8 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PlatformName = "discord"

Variables

This section is empty.

Functions

func New

func New(token string) (mpbf.Platform, error)

Types

type DiscordPlatform

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

func (*DiscordPlatform) Close

func (d *DiscordPlatform) Close() error

func (*DiscordPlatform) GetArgParser

func (d *DiscordPlatform) GetArgParser() func(rawArgs []string, command *mpbf.Command) ([]interface{}, error)

func (*DiscordPlatform) GetPlatformType

func (d *DiscordPlatform) GetPlatformType() string

func (*DiscordPlatform) GetSession

func (d *DiscordPlatform) GetSession() interface{}

func (*DiscordPlatform) JoinRealm

func (d *DiscordPlatform) JoinRealm(realmID string) error

func (*DiscordPlatform) LeaveRealm

func (d *DiscordPlatform) LeaveRealm(realmID string) error

func (*DiscordPlatform) Open

func (d *DiscordPlatform) Open(mc *mpbf.BotCommander, onMessage mpbf.CommandHandler) error

type DiscordRes

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

func (*DiscordRes) Reply

func (r *DiscordRes) Reply(message interface{}, to *mpbf.Request) (*mpbf.Message, error)

func (*DiscordRes) Send

func (r *DiscordRes) Send(message interface{}, to string) (*mpbf.Message, error)

Jump to

Keyboard shortcuts

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