handlers

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllHandlers

func GetAllHandlers() []api.EventHandler

GetAllHandlers returns all api.GatewayEventHandler(s)

Types

type ChannelCreateHandler added in v0.2.0

type ChannelCreateHandler struct{}

ChannelCreateHandler handles api.GatewayEventChannelCreate

func (*ChannelCreateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*ChannelCreateHandler) HandleGatewayEvent added in v0.2.0

func (h *ChannelCreateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*ChannelCreateHandler) New added in v0.2.0

func (h *ChannelCreateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type ChannelDeleteHandler added in v0.2.0

type ChannelDeleteHandler struct{}

ChannelDeleteHandler handles api.GatewayEventChannelDelete

func (*ChannelDeleteHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*ChannelDeleteHandler) HandleGatewayEvent added in v0.2.0

func (h *ChannelDeleteHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*ChannelDeleteHandler) New added in v0.2.0

func (h *ChannelDeleteHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type ChannelUpdateHandler added in v0.2.0

type ChannelUpdateHandler struct{}

ChannelUpdateHandler handles api.GatewayEventChannelUpdate

func (*ChannelUpdateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*ChannelUpdateHandler) HandleGatewayEvent added in v0.2.0

func (h *ChannelUpdateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*ChannelUpdateHandler) New added in v0.2.0

func (h *ChannelUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type CommandCreateHandler added in v0.4.0

type CommandCreateHandler struct{}

CommandCreateHandler handles api.CommandCreateEvent

func (*CommandCreateHandler) Event added in v0.4.0

Event returns the raw gateway api.GatewayEventType

func (*CommandCreateHandler) HandleGatewayEvent added in v0.4.0

func (h *CommandCreateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*CommandCreateHandler) New added in v0.4.0

func (h *CommandCreateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type CommandDeleteHandler added in v0.4.0

type CommandDeleteHandler struct{}

CommandDeleteHandler handles api.CommandCreateEvent

func (*CommandDeleteHandler) Event added in v0.4.0

Event returns the api.GatewayEventType

func (*CommandDeleteHandler) HandleGatewayEvent added in v0.4.0

func (h *CommandDeleteHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*CommandDeleteHandler) New added in v0.4.0

func (h *CommandDeleteHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type CommandUpdateHandler added in v0.4.0

type CommandUpdateHandler struct{}

CommandUpdateHandler handles api.CommandCreateEvent

func (*CommandUpdateHandler) Event added in v0.4.0

Event returns the api.GatewayEventType

func (*CommandUpdateHandler) HandleGatewayEvent added in v0.4.0

func (h *CommandUpdateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*CommandUpdateHandler) New added in v0.4.0

func (h *CommandUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildBanAddHandler added in v0.5.11

type GuildBanAddHandler struct{}

GuildBanAddHandler handles api.GatewayEventGuildBanAdd

func (*GuildBanAddHandler) Event added in v0.5.11

Event returns the api.GatewayEventType

func (*GuildBanAddHandler) HandleGatewayEvent added in v0.5.11

func (h *GuildBanAddHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildBanAddHandler) New added in v0.5.11

func (h *GuildBanAddHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildBanRemoveHandler added in v0.5.11

type GuildBanRemoveHandler struct{}

GuildBanRemoveHandler handles api.GatewayEventGuildBanRemove

func (*GuildBanRemoveHandler) Event added in v0.5.11

Event returns the api.GatewayEventType

func (*GuildBanRemoveHandler) HandleGatewayEvent added in v0.5.11

func (h *GuildBanRemoveHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildBanRemoveHandler) New added in v0.5.11

func (h *GuildBanRemoveHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildCreateHandler

type GuildCreateHandler struct{}

GuildCreateHandler handles api.GuildCreateGatewayEvent

func (*GuildCreateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildCreateHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildCreateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildCreateHandler) New

func (h *GuildCreateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildDeleteHandler

type GuildDeleteHandler struct{}

GuildDeleteHandler handles api.GuildDeleteGatewayEvent

func (*GuildDeleteHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildDeleteHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildDeleteHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildDeleteHandler) New

func (h *GuildDeleteHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildMemberAddHandler

type GuildMemberAddHandler struct{}

GuildMemberAddHandler handles api.GuildMemberAddGatewayEvent

func (*GuildMemberAddHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildMemberAddHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildMemberAddHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildMemberAddHandler) New

func (h *GuildMemberAddHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildMemberRemoveHandler

type GuildMemberRemoveHandler struct{}

GuildMemberRemoveHandler handles api.GuildMemberRemoveGatewayEvent

func (*GuildMemberRemoveHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildMemberRemoveHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildMemberRemoveHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildMemberRemoveHandler) New

func (h *GuildMemberRemoveHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildMemberUpdateHandler

type GuildMemberUpdateHandler struct{}

GuildMemberUpdateHandler handles api.GuildMemberUpdateGatewayEvent

func (*GuildMemberUpdateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildMemberUpdateHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildMemberUpdateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildMemberUpdateHandler) New

func (h *GuildMemberUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildRoleCreateHandler

type GuildRoleCreateHandler struct{}

GuildRoleCreateHandler handles api.GuildRoleCreateGatewayEvent

func (*GuildRoleCreateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildRoleCreateHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildRoleCreateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildRoleCreateHandler) New

func (h *GuildRoleCreateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildRoleDeleteHandler

type GuildRoleDeleteHandler struct{}

GuildRoleDeleteHandler handles api.GuildRoleDeleteGatewayEvent

func (*GuildRoleDeleteHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildRoleDeleteHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildRoleDeleteHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildRoleDeleteHandler) New

func (h *GuildRoleDeleteHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildRoleUpdateHandler

type GuildRoleUpdateHandler struct{}

GuildRoleUpdateHandler handles api.GuildRoleUpdateGatewayEvent

func (*GuildRoleUpdateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildRoleUpdateHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildRoleUpdateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildRoleUpdateHandler) New

func (h *GuildRoleUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type GuildUpdateHandler

type GuildUpdateHandler struct{}

GuildUpdateHandler handles api.GuildUpdateGatewayEvent

func (*GuildUpdateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*GuildUpdateHandler) HandleGatewayEvent added in v0.2.0

func (h *GuildUpdateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*GuildUpdateHandler) New

func (h *GuildUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type InteractionCreateHandler

type InteractionCreateHandler struct{}

InteractionCreateHandler handles api.InteractionCreateGatewayEvent

func (*InteractionCreateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*InteractionCreateHandler) HandleGatewayEvent added in v0.2.0

func (h *InteractionCreateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*InteractionCreateHandler) New

func (h *InteractionCreateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type InteractionCreateWebhookHandler

type InteractionCreateWebhookHandler struct{}

InteractionCreateWebhookHandler handles api.InteractionCreateWebhookEvent

func (*InteractionCreateWebhookHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*InteractionCreateWebhookHandler) HandleWebhookEvent added in v0.2.0

func (h *InteractionCreateWebhookHandler) HandleWebhookEvent(disgo api.Disgo, eventManager api.EventManager, c chan api.InteractionResponse, i interface{})

HandleWebhookEvent handles the specific raw gateway event

func (*InteractionCreateWebhookHandler) New

func (h *InteractionCreateWebhookHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type MessageCreateHandler

type MessageCreateHandler struct{}

MessageCreateHandler handles api.GatewayEventMessageCreate

func (*MessageCreateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*MessageCreateHandler) HandleGatewayEvent added in v0.2.0

func (h *MessageCreateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*MessageCreateHandler) New

func (h *MessageCreateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type MessageDeleteHandler added in v0.4.0

type MessageDeleteHandler struct{}

MessageDeleteHandler handles api.GatewayEventMessageDelete

func (*MessageDeleteHandler) Event added in v0.4.0

Event returns the api.GatewayEventType

func (*MessageDeleteHandler) HandleGatewayEvent added in v0.4.0

func (h *MessageDeleteHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*MessageDeleteHandler) New added in v0.4.0

func (h *MessageDeleteHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type MessageUpdateHandler added in v0.4.0

type MessageUpdateHandler struct{}

MessageUpdateHandler handles api.GatewayEventMessageUpdate

func (*MessageUpdateHandler) Event added in v0.4.0

Event returns the api.GatewayEventType

func (*MessageUpdateHandler) HandleGatewayEvent added in v0.4.0

func (h *MessageUpdateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*MessageUpdateHandler) New added in v0.4.0

func (h *MessageUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type ReadyHandler

type ReadyHandler struct{}

ReadyHandler handles api.ReadyGatewayEvent

func (*ReadyHandler) Event added in v0.2.0

func (h *ReadyHandler) Event() api.GatewayEventType

Event returns the api.GatewayEventType

func (*ReadyHandler) HandleGatewayEvent added in v0.2.0

func (h *ReadyHandler) HandleGatewayEvent(disgo api.Disgo, _ api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*ReadyHandler) New

func (h *ReadyHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type VoiceServerUpdateHandler added in v0.2.0

type VoiceServerUpdateHandler struct{}

VoiceServerUpdateHandler handles api.GatewayEventVoiceServerUpdate

func (*VoiceServerUpdateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*VoiceServerUpdateHandler) HandleGatewayEvent added in v0.2.0

func (h *VoiceServerUpdateHandler) HandleGatewayEvent(disgo api.Disgo, _ api.EventManager, _ int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*VoiceServerUpdateHandler) New added in v0.2.0

func (h *VoiceServerUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type VoiceStateUpdateHandler added in v0.2.0

type VoiceStateUpdateHandler struct{}

VoiceStateUpdateHandler handles api.GatewayEventVoiceStateUpdate

func (*VoiceStateUpdateHandler) Event added in v0.2.0

Event returns the api.GatewayEventType

func (*VoiceStateUpdateHandler) HandleGatewayEvent added in v0.2.0

func (h *VoiceStateUpdateHandler) HandleGatewayEvent(disgo api.Disgo, _ api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*VoiceStateUpdateHandler) New added in v0.2.0

func (h *VoiceStateUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

type WebhooksUpdateHandler added in v0.4.3

type WebhooksUpdateHandler struct{}

WebhooksUpdateHandler handles api.GatewayEventWebhooksUpdate

func (*WebhooksUpdateHandler) Event added in v0.4.3

Event returns the raw api.GatewayEventType

func (*WebhooksUpdateHandler) HandleGatewayEvent added in v0.4.3

func (h *WebhooksUpdateHandler) HandleGatewayEvent(disgo api.Disgo, eventManager api.EventManager, sequenceNumber int, i interface{})

HandleGatewayEvent handles the specific raw gateway event

func (*WebhooksUpdateHandler) New added in v0.4.3

func (h *WebhooksUpdateHandler) New() interface{}

New constructs a new payload receiver for the raw gateway event

Jump to

Keyboard shortcuts

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