Documentation ¶
Index ¶
- Constants
- func SetField(obj interface{}, name string, value interface{}) error
- type Bot
- type Database
- type Guild
- type GuildService
- type Handler
- type Log
- type LogService
- type Member
- type MemberService
- type ModMailEntry
- type ModMailEntryService
- type Plugin
- type PluginInfo
- type ReactionRole
- type ReactionRoleService
- type Role
- type RoleService
- type Sound
- type SoundService
- type Soundboard
- type User
- type UserService
Constants ¶
View Source
const ( LogTypeJoinLeave = iota LogTypeMemberUpdate LogTypeServerUpdate LogTypeMessageUpdate LogTypeChannelUpdate LogTypeModmail )
View Source
const (
DiscordEpoch = 1420070400000
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bot ¶
type Database ¶
type Database interface { UserService }
type GuildService ¶
type LogService ¶
type Member ¶
type Member struct { ID int64 UserID string `gorm:"primaryKey"` GuildID string `gorm:"primaryKey"` Roles []Role }
func (*Member) FillStruct ¶
type MemberService ¶
type ModMailEntry ¶
type ModMailEntryService ¶
type ModMailEntryService interface { AddModMailEntry(ModMailEntry) (int64, error) GetModMailEntry(int64) (*ModMailEntry, error) GetGuildModMailEntries(string) ([]ModMailEntry, error) GetAllModMailEntries() ([]ModMailEntry, error) UpdateModMailEntry(ModMailEntry) error RemoveModMailEntry(int64) error }
type Plugin ¶
type Plugin interface { RegisterPlugin(Bot) PluginInfo() PluginInfo }
type PluginInfo ¶
type PluginInfo struct {
Name string
}
type ReactionRole ¶
type ReactionRoleService ¶
type ReactionRoleService interface { AddReactionRole(ReactionRole) error GetReactionRole(string, string) (*ReactionRole, error) GetReactionRoles() ([]ReactionRole, error) UpdateReactionRole(int) (int, error) RemoveReactionRole(int) (int, error) }
type Role ¶
type RoleService ¶
type SoundService ¶
type Soundboard ¶
type Soundboard struct {
// contains filtered or unexported fields
}
func (*Soundboard) ClearBuffer ¶
func (s *Soundboard) ClearBuffer()
func (*Soundboard) FillBuffer ¶
func (s *Soundboard) FillBuffer(b [][]byte)
func (*Soundboard) PlayBuffer ¶
func (s *Soundboard) PlayBuffer(ses *discordgo.Session, guildID, channelID string) error
Click to show internal directories.
Click to hide internal directories.