models

package
v0.0.0-...-24cc725 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const MessagesDBKey = "messages"

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordUser

type DiscordUser struct {
	ID       string
	Username string
}

type Message

type Message struct {
	ID       string
	Trigger  string
	Response string
}

type Messages

type Messages struct {
	Messages []Message
}

type Session

type Session struct {
	State       string // Used in the OAuth2 flow to validate the request
	Auth        *oauth2.Token
	DiscordUser *DiscordUser
}

Jump to

Keyboard shortcuts

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