storage

package
v0.0.0-...-8a0e724 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SETTINGS_FILE_RELATIVE_PATH string = "./persistent_settings.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	TargetChannel *discordgo.Channel `json:"channel"`
	TargetRole    *discordgo.Role    `json:"role"`
}

func (*Settings) Channel

func (s *Settings) Channel() (*discordgo.Channel, error)

func (*Settings) Role

func (s *Settings) Role() (*discordgo.Role, error)

func (*Settings) SetChannel

func (s *Settings) SetChannel(channel *discordgo.Channel) error

func (*Settings) SetRole

func (s *Settings) SetRole(role *discordgo.Role) error

Jump to

Keyboard shortcuts

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