26 lines · 739 B · Go
RawDownload
package DiscordState import "github.com/bwmarrin/discordgo" //State is the current state of the attached clienttype State struct {	Guild         *discordgo.Guild	Channel       *discordgo.Channel	Channels      []*discordgo.Channel	UserChannels  []*discordgo.Channel	Members       map[string]*discordgo.Member	MemberRole    map[string]*discordgo.Role	Messages      []*discordgo.Message	Session       *Session	MessageAmount int  //Amount of Messages to keep in State	Enabled       bool //Toggles State for Event handling} //Session contains the 'state' of the attached servertype Session struct {	Username  string	User      *discordgo.User	Password  string	DiscordGo *discordgo.Session	Guilds    []*discordgo.UserGuild}