Documentation ¶
Index ¶
- func CheckAdministratorPermission(s *discordgo.Session, userID string, guildid string) bool
- func CheckBanPermission(s *discordgo.Session, userID string, guildid string) bool
- func CheckKickPermission(s *discordgo.Session, userID string, guildid string) bool
- func CheckManageMessagesPermission(s *discordgo.Session, userID string, guildid string) bool
- func CreateEmbedResponse(embed embedutil.Embed) interactions.InteractionResponse
- func CreateResponse(message string) interactions.InteractionResponse
- func GetArgs(message string, prefix string) []string
- func GetChannel(channel string) string
- func GetDuration(duration time.Duration) string
- func GetPrefix() string
- func GetRole(role string) string
- func GetUser(user string) string
- func Shift(a []string, i int) ([]string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAdministratorPermission ¶ added in v1.6.3
CheckAdministratorPermission checks user's permissions on channel, returns to "true" or "false"
func CheckBanPermission ¶ added in v1.6.3
CheckBanPermission checks user's permissions on channel, returns to "true" or "false"
func CheckKickPermission ¶ added in v1.6.3
CheckKickPermission checks user's permissions on channel, returns to "true" or "false"
func CheckManageMessagesPermission ¶ added in v1.6.3
CheckManageMessagesPermission checks user's permissions on channel, returns to "true" or "false"
func CreateEmbedResponse ¶ added in v1.6.7
func CreateEmbedResponse(embed embedutil.Embed) interactions.InteractionResponse
CreateEmbedResponse returns an interaction response This is for only embed
func CreateResponse ¶ added in v1.6.6
func CreateResponse(message string) interactions.InteractionResponse
CreateResponse returns an interaction response This is for only string data
func GetChannel ¶ added in v1.5.3
GetChannel function provides to get a channel with id or mention
func GetDuration ¶ added in v1.5.7
GetDuration function is for stats command
func GetPrefix ¶ added in v1.6.0
func GetPrefix() string
GetPrefix returns to Bot's prefix from config package
Types ¶
This section is empty.