Documentation ¶
Index ¶
- func AddAttachments(attachments []*discordgo.MessageAttachment) string
- func AddEmbeds(embeds []*discordgo.MessageEmbed) string
- func AddMessage(message *discordgo.Message, db *sql.DB)
- func InitAttachmentsTable(db *sql.DB)
- func InitEmbedsTable(db *sql.DB)
- func InitMessagesTable(db *sql.DB)
- func UpdateEveryoneMentions(mention bool) bool
- func UpdateMemberMentions(mentions []*discordgo.User) string
- func UpdateRoleMentions(roles []string) string
- type SQLMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAttachments ¶
func AddAttachments(attachments []*discordgo.MessageAttachment) string
AddAttachments Inserts a new entry in the attachments table
func AddEmbeds ¶
func AddEmbeds(embeds []*discordgo.MessageEmbed) string
AddEmbeds Inserts a new entry in the embeds table
func AddMessage ¶
AddMessage Inserts a new entry in the messages table
func InitAttachmentsTable ¶
InitAttachmentsTable Creates the attachments table
func InitMessagesTable ¶
InitMessagesTable Creates the messages table
func UpdateEveryoneMentions ¶
UpdateEveryoneMentions +1 to @everyone when someone with nothing better to do mentions it
func UpdateMemberMentions ¶
UpdateMemberMentions +1 to a member when mentioned
func UpdateRoleMentions ¶
UpdateRoleMentions +1 to a role when mentioned
Types ¶
type SQLMessage ¶
type SQLMessage struct { ID string Type int ChannelID string Content string Characters int Timestamp string EditedTimestamp string MentionRoles string Tts bool MentionEveryone bool Author string Attachments string Embeds string Mentions string Reactions string Emojis string }
SQLMessage Database friendly message struct
Click to show internal directories.
Click to hide internal directories.