collectors

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = core.CollectorsConfig{
	NewMessageCollectorFunc:                       NewMessageCollector,
	NewMessageReactionAddCollectorFunc:            NewMessageReactionAddCollector,
	NewMessageReactionRemoveCollectorFunc:         NewMessageReactionRemoveCollector,
	NewInteractionCollectorFunc:                   NewInteractionCollector,
	NewApplicationCommandInteractionCollectorFunc: NewApplicationCommandInteractionCollector,
	NewSlashCommandCollectorFunc:                  NewSlashCommandCollector,
	NewMessageCommandCollectorFunc:                NewMessageCommandCollector,
	NewUserCommandCollectorFunc:                   NewUserCommandCollector,
	NewComponentInteractionCollectorFunc:          NewComponentInteractionCollector,
	NewButtonClickCollectorFunc:                   NewButtonClickCollector,
	NewSelectMenuSubmitCollectorFunc:              NewSelectMenuSubmitCollector,
	NewAutocompleteCollectorFunc:                  NewAutocompleteCollector,
}

Functions

func NewApplicationCommandInteractionCollector

func NewApplicationCommandInteractionCollector(disgo *core.Bot, filter core.ApplicationCommandInteractionFilter) (<-chan core.ApplicationCommandInteraction, func())

NewApplicationCommandInteractionCollector gives you a channel to receive on and a function to close the collector

func NewAutocompleteCollector

func NewAutocompleteCollector(disgo *core.Bot, filter core.AutocompleteInteractionFilter) (<-chan *core.AutocompleteInteraction, func())

NewAutocompleteCollector gives you a channel to receive on and a function to close the collector

func NewButtonClickCollector

func NewButtonClickCollector(disgo *core.Bot, filter core.ButtonInteractionFilter) (<-chan *core.ButtonInteraction, func())

NewButtonClickCollector gives you a channel to receive on and a function to close the collector

func NewComponentInteractionCollector

func NewComponentInteractionCollector(disgo *core.Bot, filter core.ComponentInteractionFilter) (<-chan core.ComponentInteraction, func())

NewComponentInteractionCollector gives you a channel to receive on and a function to close the collector

func NewInteractionCollector

func NewInteractionCollector(disgo *core.Bot, filter core.InteractionFilter) (<-chan core.Interaction, func())

NewInteractionCollector gives you a channel to receive on and a function to close the collector

func NewMessageCollector

func NewMessageCollector(disgo *core.Bot, filter core.MessageFilter) (<-chan *core.Message, func())

NewMessageCollector gives you a channel to receive on and a function to close the collector

func NewMessageCommandCollector

func NewMessageCommandCollector(disgo *core.Bot, filter core.MessageCommandInteractionFilter) (<-chan *core.MessageCommandInteraction, func())

NewMessageCommandCollector gives you a channel to receive on and a function to close the collector

func NewMessageReactionAddCollector

func NewMessageReactionAddCollector(disgo *core.Bot, filter core.MessageReactionAddFilter) (<-chan *core.MessageReactionAdd, func())

NewMessageReactionAddCollector gives you a channel to receive on and a function to close the collector

func NewMessageReactionRemoveCollector

func NewMessageReactionRemoveCollector(disgo *core.Bot, filter core.MessageReactionRemoveFilter) (<-chan *core.MessageReactionRemove, func())

NewMessageReactionRemoveCollector gives you a channel to receive on and a function to close the collector

func NewSelectMenuSubmitCollector

func NewSelectMenuSubmitCollector(disgo *core.Bot, filter core.SelectMenuInteractionFilter) (<-chan *core.SelectMenuInteraction, func())

NewSelectMenuSubmitCollector gives you a channel to receive on and a function to close the collector

func NewSlashCommandCollector

func NewSlashCommandCollector(disgo *core.Bot, filter core.SlashCommandInteractionFilter) (<-chan *core.SlashCommandInteraction, func())

NewSlashCommandCollector gives you a channel to receive on and a function to close the collector

func NewUserCommandCollector

func NewUserCommandCollector(disgo *core.Bot, filter core.UserCommandInteractionFilter) (<-chan *core.UserCommandInteraction, func())

NewUserCommandCollector gives you a channel to receive on and a function to close the collector

Types

type ApplicationCommandInteractionCollector

type ApplicationCommandInteractionCollector struct {
	Filter core.ApplicationCommandInteractionFilter
	Chan   chan<- core.ApplicationCommandInteraction
	Close  func()
}

ApplicationCommandInteractionCollector used to collect core.ApplicationCommandInteractionApplicationCommandInteraction(s) from a core.Message using a ButtonFilter function

func (*ApplicationCommandInteractionCollector) OnEvent

OnEvent used to get events for the ButtonCollector

type AutocompleteCollector

type AutocompleteCollector struct {
	Filter core.AutocompleteInteractionFilter
	Chan   chan<- *core.AutocompleteInteraction
	Close  func()
}

AutocompleteCollector used to collect core.AutocompleteInteraction(s) from a core.Message using a ButtonFilter function

func (*AutocompleteCollector) OnEvent

func (c *AutocompleteCollector) OnEvent(e core.Event)

OnEvent used to get events for the ButtonCollector

type ButtonClickCollector

type ButtonClickCollector struct {
	Filter core.ButtonInteractionFilter
	Chan   chan<- *core.ButtonInteraction
	Close  func()
}

ButtonClickCollector used to collect core.ButtonInteraction(s) from a core.Message using a ButtonFilter function

func (*ButtonClickCollector) OnEvent

func (c *ButtonClickCollector) OnEvent(e core.Event)

OnEvent used to get events for the ButtonCollector

type ComponentInteractionCollector

type ComponentInteractionCollector struct {
	Filter core.ComponentInteractionFilter
	Chan   chan<- core.ComponentInteraction
	Close  func()
}

ComponentInteractionCollector used to collect core.ComponentInteractionComponentInteraction(s) from a core.Message using a ButtonFilter function

func (*ComponentInteractionCollector) OnEvent

OnEvent used to get events for the ButtonCollector

type InteractionCollector

type InteractionCollector struct {
	Filter core.InteractionFilter
	Chan   chan<- core.Interaction
	Close  func()
}

InteractionCollector used to collect core.InteractionInteraction(s) from a core.Message using a ButtonFilter function

func (*InteractionCollector) OnEvent

func (c *InteractionCollector) OnEvent(e core.Event)

OnEvent used to get events for the ButtonCollector

type MessageCollector

type MessageCollector struct {
	Filter core.MessageFilter
	Chan   chan<- *core.Message
	Close  func()
}

MessageCollector collects Message(s) using a MessageFilter function

func (*MessageCollector) OnEvent

func (c *MessageCollector) OnEvent(e core.Event)

OnEvent used to get events for the MessageCollector

type MessageCommandCollector

type MessageCommandCollector struct {
	Filter core.MessageCommandInteractionFilter
	Chan   chan<- *core.MessageCommandInteraction
	Close  func()
}

MessageCommandCollector used to collect core.MessageCommandInteraction(s) from a core.Message using a ButtonFilter function

func (*MessageCommandCollector) OnEvent

func (c *MessageCommandCollector) OnEvent(e core.Event)

OnEvent used to get events for the ButtonCollector

type MessageReactionAddCollector

type MessageReactionAddCollector struct {
	Filter core.MessageReactionAddFilter
	Chan   chan *core.MessageReactionAdd
	Close  func()
}

MessageReactionAddCollector used to collect discord.MessageReaction(s) from a core.Message using an events.MessageReactionAddFilter function

func (*MessageReactionAddCollector) OnEvent

func (c *MessageReactionAddCollector) OnEvent(e core.Event)

OnEvent used to get events for the ReactionCollector

type MessageReactionRemoveCollector

type MessageReactionRemoveCollector struct {
	Filter core.MessageReactionRemoveFilter
	Chan   chan *core.MessageReactionRemove
	Close  func()
}

MessageReactionRemoveCollector used to collect discord.MessageReaction(s) from a core.Message using an events.MessageReactionRemoveFilter function

func (*MessageReactionRemoveCollector) OnEvent

OnEvent used to get events for the ReactionCollector

type SelectMenuSubmitCollector

type SelectMenuSubmitCollector struct {
	Filter core.SelectMenuInteractionFilter
	Chan   chan<- *core.SelectMenuInteraction
	Close  func()
}

SelectMenuSubmitCollector used to collect core.SelectMenuInteraction(s) from a core.Message using a core.SelectMenuInteractionFilter function

func (*SelectMenuSubmitCollector) OnEvent

func (c *SelectMenuSubmitCollector) OnEvent(e core.Event)

OnEvent used to get events for the SelectMenuSubmitCollector

type SlashCommandCollector

type SlashCommandCollector struct {
	Filter core.SlashCommandInteractionFilter
	Chan   chan<- *core.SlashCommandInteraction
	Close  func()
}

SlashCommandCollector used to collect core.SlashCommandInteraction(s) from a core.Message using a ButtonFilter function

func (*SlashCommandCollector) OnEvent

func (c *SlashCommandCollector) OnEvent(e core.Event)

OnEvent used to get events for the ButtonCollector

type UserCommandCollector

type UserCommandCollector struct {
	Filter core.UserCommandInteractionFilter
	Chan   chan<- *core.UserCommandInteraction
	Close  func()
}

UserCommandCollector used to collect core.UserCommandInteraction(s) from a core.Message using a ButtonFilter function

func (*UserCommandCollector) OnEvent

func (c *UserCommandCollector) OnEvent(e core.Event)

OnEvent used to get events for the ButtonCollector

Jump to

Keyboard shortcuts

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