Documentation
¶
Index ¶
- Constants
- func GenerateRandomMessageColor() int
- type BotData
- func (bot *BotData) GetDatabase() *database.Database
- func (bot BotData) GetGuildDataFromId(guildId string) *discordgo.Guild
- func (bot BotData) GetID() string
- func (bot BotData) GetMention() string
- func (bot BotData) GetSession() *discordgo.Session
- func (bot BotData) GetUser() *discordgo.User
- func (bot *BotData) InitDatabase()
- func (bot *BotData) RegisterGuild(guild *discordgo.Guild)
- func (bot *BotData) RemoveGuild(guildId string)
- func (bot *BotData) RetrieveInfo() (err error)
- func (bot BotData) SendDelayedErrorMessage(channelId, message string)
- func (bot BotData) SendDelayedInternalServerErrorMessage(channelId string)
- func (bot BotData) SendDelayedMessage(channelId, message string)
- func (bot BotData) SendErrorMessage(channelId, message string)
- func (bot BotData) SendInternalServerErrorMessage(channelId string)
- func (bot BotData) SendMessageWithNoTitle(channelId, message string)
- func (bot BotData) SendMessageWithTitle(channelId, message, title string)
- func (bot *BotData) SetSession(session *discordgo.Session)
- func (bot *BotData) StartTime()
Constants ¶
View Source
const ( TimeoutSec = 10 RedColor = 15548997 )
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomMessageColor ¶
func GenerateRandomMessageColor() int
Types ¶
type BotData ¶
var Bot BotData
func (*BotData) GetDatabase ¶
func (BotData) GetGuildDataFromId ¶
func (BotData) GetMention ¶
func (BotData) GetSession ¶
func (*BotData) InitDatabase ¶
func (bot *BotData) InitDatabase()
func (*BotData) RegisterGuild ¶
func (*BotData) RemoveGuild ¶
func (*BotData) RetrieveInfo ¶
func (BotData) SendDelayedErrorMessage ¶
func (BotData) SendDelayedInternalServerErrorMessage ¶
func (BotData) SendDelayedMessage ¶
func (BotData) SendErrorMessage ¶
func (BotData) SendInternalServerErrorMessage ¶
func (BotData) SendMessageWithNoTitle ¶
func (BotData) SendMessageWithTitle ¶
func (*BotData) SetSession ¶
Click to show internal directories.
Click to hide internal directories.