Documentation ¶
Index ¶
Constants ¶
View Source
const ( DiscordEpoch = 1420070400000 GuildID = "813498656992002069" RulesID = "813498656992002071" ModmailLogID = "813724684662472725" ModmailCatID = "813724683803164714" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BibleVerse ¶
type BibleVerse struct { ID int64 `db:"id"` Version string `db:"_version"` Abbreviation string `db:"abbreviation"` Book string `db:"book"` Chapter int `db:"chapter"` VerseNumber int `db:"verse_number"` Text string `db:"_text"` }
func (*BibleVerse) Embed ¶
func (bv *BibleVerse) Embed() *discordgo.MessageEmbed
type BibleVerseService ¶
type BibleVerseService interface { GetBibleVerse(version, book string, chapter, verse int) (*BibleVerse, error) GetBibleVerses(version, book string, chapter, start, end int) ([]BibleVerse, error) }
type Bot ¶
type Bot struct { *shrouter.Router MemberService RankService BibleVerseService }
func NewBot ¶
func NewBot(token string, ms MemberService, rs RankService, bs BibleVerseService) *Bot
type Member ¶
type MemberService ¶
type ModMailEntry ¶
type ModMailEntryService ¶
type ModMailEntryService interface { AddModMailEntry(ModMailEntry) (int64, error) GetModMailEntry(int64) (*ModMailEntry, error) GetAllModMailEntries() ([]ModMailEntry, error) UpdateModMailEntry(ModMailEntry) (int64, error) RemoveModMailEntry(int64) error }
type RankService ¶
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) }
Click to show internal directories.
Click to hide internal directories.