package
0.0.0-20240613153357-3ea8a2466821
Repository: https://github.com/5ht2/taro-bot.git
Documentation: pkg.go.dev

# Functions

CommandHandler will parse commands and run the appropriate command func.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetPermission will return a valid Permission type from a string.
GivePermission will return nil if the permission was successfully given to the user with a matching id.
No description provided by the author
HasPermission will return if the author of a command has said permission.
No description provided by the author
ParseAllArgs will return the combined existing args.
ParseBoolArg will return a bool (True / true / 1), or false with an error.
ParseChannelArg will return the ID of a mentioned channel, or -1 and an error.
ParseChannelSliceArg will return the IDs of the mentioned channels, or nil and an error.
No description provided by the author
ParseEmojiArg will return a discord.APIEmoji and the animated status, or nil, false and an error.
ParseEmojiIdArg will return an emoji ID, or -1 and an error.
ParseEmojiUrlArg will return an emoji ID, or -1 and an error.
ParseInt64Arg will return an int64 from s, or -1 and an error.
ParseInt64SliceArg will return an []int64, or nil and an error.
ParseStringArg will return the selected string, or "" with an error.
ParseStringSliceArg will return the strings in a range, or a nil and an error.
ParseUrlArg will return a URL, or "" and an error.
ParseUserArg will return the ID of a mentioned user, or -1 and an error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdateMemberCache will forcibly update the member cache.
UserHasPermission will return if the user with id has said permission.

# Constants

No description provided by the author
No description provided by the author
"operator" is a special permission, managed by bot.C.OperatorIDs.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author