message

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package message handles replies and message events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher []Handler

Dispatcher for inbound messages to Handlers.

func (*Dispatcher) Dispatch

func (d *Dispatcher) Dispatch(s *discordgo.Session, m *discordgo.MessageCreate)

Dispatch an inbound message to the registered handlers.

type Handler

type Handler func(s *discordgo.Session, msg *discordgo.Message)

Handler used to process inbound messages.

Jump to

Keyboard shortcuts

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