Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UrrAdmin = core.UrrNew("prefixes of type 'admin' are static, change the bot's config instead") UrrMoreThanOneType = core.UrrNew("only one type per prefix allowed") )
View Source
var ( UrrExists = core.UrrNew("The prefix already exists.") UrrNotFound = core.UrrNew("The prefix was not found.") UrrOneLeft = core.UrrNew("Only one prefix is left.") UrrCustomCommandExists = core.UrrNew("Can't add the prefix %s. A custom command with the name %s exists and would collide with the built-in command of the same name. Either change the custom command or use a different prefix.") )
View Source
var Admin = admin{}
View Source
var AdminAdd = adminAdd{}
View Source
var AdminDelete = adminDelete{}
View Source
var AdminList = adminList{}
View Source
var AdminReset = adminReset{}
View Source
var Advanced = advanced{}
View Source
var AdvancedAdd = advancedAdd{}
View Source
var AdvancedDelete = advancedDelete{}
View Source
var AdvancedList = advancedList{}
View Source
var AdvancedReset = advancedReset{}
View Source
var Normal = normal{}
View Source
var NormalAdd = normalAdd{}
View Source
var NormalDelete = normalDelete{}
View Source
var NormalReset = normalReset{}
Functions ¶
func Add ¶
Add adds a prefix of type t in the specified place. If the prefix, regardless of type, already exists then returns an UrrExists error. If a custom command happens to collide with the newly added prefix (for example if the custom command `.help` exists and the prefix `.` is added then `.help` would collide with the built-in command `help`) then returns an UrrCustomCommandExists error.
func Delete ¶
Delete removes the prefix of type t from the specified place. If the prefix doesn't exist returns an UrrNotFound error. If there is only one prefix of that type left then returns an UrrOneLeft error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.