admin

package
v0.0.0-...-e873abf Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(bot *bot.Bot) (s string, list []*bcr.Command)

Init ...

Types

type AllowedGuild

type AllowedGuild struct {
	ID       discord.GuildID
	Reason   string
	AddedBy  discord.UserID
	AddedFor discord.UserID
	AddedAt  time.Time
}

type Bot

type Bot struct {
	*bot.Bot

	Client        *http.Client
	VoiceSessions *concurrent.Map[discord.GuildID, *voice.Session]
	// contains filtered or unexported fields
}

Bot ...

func (*Bot) SetSettings

func (bot *Bot) SetSettings(s Settings) (err error)

SetSettings sets the bot's settings

func (*Bot) Settings

func (bot *Bot) Settings() (s Settings)

Settings returns the bot settings

type Settings

type Settings struct {
	ID     int
	Status discord.Status

	ActivityType string
	Activity     string
}

Settings ...

Jump to

Keyboard shortcuts

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