intent

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Events

func Events(intent Type) []event.Type

func Valid

func Valid(intent Type) bool

Types

type Type

type Type int
const (
	Guilds Type = 1 << iota
	GuildMembers
	GuildBans
	GuildEmojisAndStickers
	GuildIntegrations
	GuildWebhooks
	GuildInvites
	GuildVoiceStates
	GuildPresences
	GuildMessages
	GuildMessageReactions
	GuildMessageTyping
	DirectMessages
	DirectMessageReactions
	DirectMessageTyping

	GuildScheduledEvents
)

func All

func All() []Type

func DMEventsToIntents

func DMEventsToIntents(src []event.Type) Type

func GuildEventsToIntents

func GuildEventsToIntents(src []event.Type) Type

func Merge

func Merge(intents ...Type) Type

Jump to

Keyboard shortcuts

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