discord

package
v0.0.0-...-d234511 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReminderCommand

type ReminderCommand struct {
	Repository reminder.Repository
}

func (*ReminderCommand) Description

func (cmd *ReminderCommand) Description() string

func (*ReminderCommand) Name

func (cmd *ReminderCommand) Name() string

func (*ReminderCommand) Options

func (*ReminderCommand) Run

func (cmd *ReminderCommand) Run(ctx *ken.Ctx) (err error)

func (*ReminderCommand) Version

func (cmd *ReminderCommand) Version() string

type Service

type Service struct {
	BotToken        string
	Storage         storage.Driver
	ReminderWatcher *reminder.Watcher
	// contains filtered or unexported fields
}

Service represents the service handling the interaction with the Discord gateway

func (*Service) Start

func (service *Service) Start() error

Start starts the Discord service

func (*Service) Stop

func (service *Service) Stop() error

Stop stops the Discord service

Jump to

Keyboard shortcuts

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