discord

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventChannelCreate            = "Commander.Discord.Channel:Create"
	EventChannelDelete            = "Commander.Discord.Channel:Delete"
	EventChannelUpdate            = "Commander.Discord.Channel:Update"
	EventChannelPinsUpdate        = "Commander.Discord.Channel.Pins:Update"
	EventGuildCreate              = "Commander.Discord.Guild:Create"
	EventGuildDelete              = "Commander.Discord.Guild:Delete"
	EventGuildUpdate              = "Commander.Discord.Guild:Update"
	EventGuildBanAdd              = "Commander.Discord.Guild.Ban:Add"
	EventGuildBanRemove           = "Commander.Discord.Guild.Ban:Remove"
	EventGuildEmojiUpdate         = "Commander.Discord.Guild.Emoji:Update"
	EventGuildIntegrationsUpdate  = "Commander.Discord.Guild.Integrations:Update"
	EventGuildMemberAdd           = "Commander.Discord.Guild.Member:Add"
	EventGuildMemberRemove        = "Commander.Discord.Guild.Member:Remove"
	EventGuildMemberUpdate        = "Commander.Discord.Guild.Member:Update"
	EventGuildRoleCreate          = "Commander.Discord.Guild.Role:Create"
	EventGuildRoleDelete          = "Commander.Discord.Guild.Role:Delete"
	EventGuildRoleUpdate          = "Commander.Discord.Guild.Role:Update"
	EventMessageDelete            = "Commander.Discord.Message:Delete"
	EventMessageDeleteBulk        = "Commander.Discord.Message:DeleteBulk"
	EventMessageUpdate            = "Commander.Discord.Message:Update"
	EventMessageReactionAdd       = "Commander.Discord.Message.Reaction:Add"
	EventMessageReactionRemove    = "Commander.Discord.Message.Reaction:Remove"
	EventMessageReactionRemoveAll = "Commander.Discord.Message.Reaction:RemoveAll"
	EventPresenceUpdate           = "Commander.Discord.Presence:Update"
	EventPresencesReplace         = "Commander.Discord.Presences:Replace"
	EventRelationshipAdd          = "Commander.Discord.Relationship:Add"
	EventRelationshipRemove       = "Commander.Discord.Relationship:Remove"
	EventTypingStart              = "Commander.Discord.Typing:Start"
	EventUserGuildSettingsUpdate  = "Commander.Discord.User.Guild.Settings:Update"
	EventUserNoteUpdate           = "Commander.Discord.User.Note:Update"
	EventUserSettingsUpdate       = "Commander.Discord.User.Settings:Update"
	EventUserUpdate               = "Commander.Discord.User:Update"
	EventVoiceServerUpdate        = "Commander.Discord.Voice.Server:Update"
	EventVoiceStateUpdate         = "Commander.Discord.Voice.State:Update"
	EventWebhooksUpdate           = "Commander.Discord.Webhooks:Update"
)

Variables

This section is empty.

Functions

func New

func New() criuscommander.Platform

Types

type Discord

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

func (*Discord) Close

func (d *Discord) Close() error

func (*Discord) GenHelp

func (d *Discord) GenHelp(data interface{}, m *criuscommander.MessageContext) error

func (*Discord) GetClient

func (d *Discord) GetClient() interface{}

func (*Discord) GetPlatformType

func (d *Discord) GetPlatformType() criuscommander.PlatformType

func (*Discord) JoinChannel

func (d *Discord) JoinChannel(_ interface{}) error

isn't supported under discord.

func (*Discord) LeaveChannel

func (d *Discord) LeaveChannel(_ interface{}) error

isn't supported under discord.

func (*Discord) Open

func (d *Discord) Open(ctx context.Context) error

func (*Discord) RegisterEvents

func (d *Discord) RegisterEvents(publisher EventBus.BusPublisher) error

func (*Discord) RegisterMessageHandler

func (d *Discord) RegisterMessageHandler(fn func(string, *criuscommander.MessageContext)) error

func (*Discord) Setup

func (d *Discord) Setup(token string) error

Jump to

Keyboard shortcuts

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