multiplexer

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdministratorPermission added in v1.6.3

func CheckAdministratorPermission(s *discordgo.Session, userID string, guildid string) bool

CheckAdministratorPermission checks user's permissions on channel, returns to "true" or "false"

func CheckBanPermission added in v1.6.3

func CheckBanPermission(s *discordgo.Session, userID string, guildid string) bool

CheckBanPermission checks user's permissions on channel, returns to "true" or "false"

func CheckKickPermission added in v1.6.3

func CheckKickPermission(s *discordgo.Session, userID string, guildid string) bool

CheckKickPermission checks user's permissions on channel, returns to "true" or "false"

func CheckManageMessagesPermission added in v1.6.3

func CheckManageMessagesPermission(s *discordgo.Session, userID string, guildid string) bool

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 GetArgs added in v1.6.0

func GetArgs(message string, prefix string) []string

GetArgs function gets args from message content

func GetChannel added in v1.5.3

func GetChannel(channel string) string

GetChannel function provides to get a channel with id or mention

func GetDuration added in v1.5.7

func GetDuration(duration time.Duration) string

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

func GetRole

func GetRole(role string) string

GetRole function provides to get a role with id or mention

func GetUser

func GetUser(user string) string

GetUser function provides to get a user with id or mention

func Shift added in v1.6.0

func Shift(a []string, i int) ([]string, string)

Shift is a required function for GetArgs

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL