state

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Variables containing important information.

Index

Constants

View Source
const AdminOnly = "This command is only available to system administrators!"
View Source
const ErrorOccurred = "Something went wrong and I am very confused! Please try again!"
View Source
const FeatureDisabled = "This feature is currently disabled."
View Source
const GuildOnly = "This command can only be issued from a guild."
View Source
const Inaccessible = "Channel inaccessible."
View Source
const InvalidArgument = "Invalid argument."

Static messages

View Source
const KappaColor = 0x3492c4
View Source
const MissingUser = "Specified user does not exist."
View Source
const OperatorOnly = "This command is only available to operators!"
View Source
const PermissionDenied = "You are not allowed to issue this command!"

Variables

View Source
var (
	ExitCode     = make(chan int)
	DiscordReady = make(chan bool)
)

Channels

View Source
var Administrator *discordgo.User

Important users

View Source
var Application *discordgo.Application
View Source
var (
	InviteURL string
)

Information

View Source
var Operator []*discordgo.User
View Source
var RawSession, _ = discordgo.New()

Session information

View Source
var ShardSessions []*discordgo.Session

Functions

func Revision added in v1.0.1

func Revision() string

func Uptime added in v1.5.6

func Uptime() time.Duration

func Version

func Version() string

Types

type SystemStats added in v1.6.9

type SystemStats struct {
	Process struct {
		PID          int
		Uptime       time.Duration
		NumGoroutine int
	}
	Platform struct {
		GoVersion string
		GOOS      string
		GOARCH    string
		GOROOT    string
	}
	Mem struct {
		Allocated string
		Total     string
		Sys       string
		Lookups   uint64
		Mallocs   uint64
		Frees     uint64
	}
	Heap struct {
		Alloc    string
		Sys      string
		Idle     string
		Inuse    string
		Released string
		Objects  uint64
	}
	GC struct {
		NextGC       string
		LastGC       string
		PauseTotalNs string
		PauseNs      string
		NumGC        uint32
	}
	Misc struct {
		StackInuse  string
		StackSys    string
		MSpanInuse  string
		MSpanSys    string
		MCacheInuse string
		MCacheSys   string
		GCSys       string
		BuckHashSys string
		OtherSys    string
	}
}

func Stats added in v1.6.9

func Stats() SystemStats

Jump to

Keyboard shortcuts

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