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 ¶
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
Click to show internal directories.
Click to hide internal directories.