Documentation ¶
Index ¶
- func GetChannelsData(channelsArr []*discordgo.Channel)
- func GetEmojisData(emojis []*discordgo.Emoji)
- func GetMembersData(members []*discordgo.Member)
- func GetMessageData(msg *discordgo.MessageCreate)
- func GetMessagesData(msgs []*discordgo.Message)
- func GetRP(presences []*discordgo.Presence)
- func GetRolesData(roles []*discordgo.Role)
- func GetTextChannels(channelsArr []*discordgo.Channel) []*discordgo.Channel
- func GetUsersData(members []*discordgo.Member)
- func InitMessagesTables()
- func InitRPTable(db *sql.DB)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChannelsData ¶
GetChannelsData Filters the channel by it's type and then adds it to the channels table
func GetEmojisData ¶
GetEmojisData Inserts a new entry in the emojis table
func GetMembersData ¶
GetMembersData Inserts a new entry in the members table
func GetMessageData ¶
func GetMessageData(msg *discordgo.MessageCreate)
GetMessageData Inserts a new entries in the messages table
func GetMessagesData ¶
GetMessagesData Inserts a new entries in the messages table
func GetRP ¶
Probably will change the structure of the table to be name and a list of users Who used the RP (TODO)
func GetRolesData ¶
GetRolesData Inserts a new entry in the roles table
func GetTextChannels ¶
GetTextChannels Returns only text channels
func GetUsersData ¶
GetUsersData Inserts a new entry in the users table
func InitMessagesTables ¶
func InitMessagesTables()
InitMessagesTables Creates all tables necessary to process messages
Types ¶
This section is empty.