Documentation
¶
Index ¶
- Constants
- Variables
- func CreateLogger()
- func FormatTimeSince(old time.Time) string
- func GetGuildID() discord.GuildID
- func GetRoleDifference(newRoles, oldRoles []discord.RoleID) discord.RoleID
- func GetSession() *state.State
- func HasAdminPermission(member *discord.Member) bool
- func HasModPermission(member *discord.Member) bool
- func HasOwnerPermission(member discord.UserID) bool
- func IsAdminOrMod(member *discord.Member) bool
- func IsDefaultAvatar(avatar string) bool
Constants ¶
View Source
const ( GITHUB = "https://github.com/CorentinGS/Kafejo-Bot" VERSION = "v0.1.0" GREEN = 0x00ff00 RED = 0xff0000 BLUE = 0x0000ff ORANGE = 0xffa500 PURPLE = 0x800080 SQLMaxOpenConns = 50 SQLMaxIdleConns = 10 CacheExpireMinutes = 2 )
View Source
const ( ConfigRoleAdmin = "1059086726565462136" ConfigRoleMod = "1059086750921801749" ConfigOwnerID = "282233191916634113" ConfigMainRole = "1059086753425805354" ConfigGuildID = "560798438099255296" ConfigGateKeepChannelID = "1059086776368631878" ConfigLogsChannelID = "960577800589434950" ConfigWelcomeChannelID = "1059086801203105863" ConfigAdminChannelID = "1059086820442382348" ConfigWelcomeMessageID = "1060225318453002351" )
Variables ¶
Functions ¶
func CreateLogger ¶
func CreateLogger()
func FormatTimeSince ¶
func GetGuildID ¶
func GetSession ¶
func HasAdminPermission ¶
HasAdminPermission checks if the user has admin permission
func HasModPermission ¶
HasModPermission checks if the user has mod permission
func HasOwnerPermission ¶
HasOwnerPermission checks if the user has owner permission
func IsAdminOrMod ¶
IsAdminOrMod checks if the user is an admin or a moderator
func IsDefaultAvatar ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.