aboutsummaryrefslogtreecommitdiff
path: root/src/ext/framework/configuration.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add framework config to ignore webhook messagesIllia2016-12-181-0/+18
|
* Framework blocks, disabled commands, improvementsIllia2016-12-141-12/+89
|
* Slightly rework framework bucketsAustin Hellyer2016-12-141-79/+72
|
* Implement command groups and bucketsIllia2016-12-131-1/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement command groups * change to ref mut * Implement framework API. * Remove commands field * Make it all work * Make example use command groups * Requested changes * Implement adding buckets * Add ratelimit check function * Finish everything * Fix voice example * Actually fix it * Fix doc tests * Switch to result * Savage examples * Fix docs * Fixes * Accidental push * 👀 * Fix an example * fix some example * Small cleanup * Abstract ratelimit bucket logic
* More config for CreateCommand, add various methodsIllia2016-12-101-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | Adds multiple configurations to the command builder, and adds methods to various structs. Context::get_current_user is a shortcut to retrieve the current user from the cache. Message::get_member retrieves the member object of the message, if sent in a guild. Message::is_private checks if the message was sent in a Group or PrivateChannel. User::member retrieves the user's member object in a guild by Id; Adds 6 configurations to the command builder: - dm_only: whether the command can only be used in direct messages; - guild_only: whether the command can only be used in guilds; - help_available: whether the command should be displayed in the help list; - max_args: specify the maximum number of arguments a command must be given; - min_args: specify the minimum number of arguments a command must be given; - required_permissions: the permissions a member must have to be able to use the command;
* Abstract command fields to typesAustin Hellyer2016-12-091-1/+2
|
* Command builder, quoted args, and multi-prefixesIllia2016-12-091-3/+24
| | | | | Add a command builder, which can take arguments such as multiple checks, quoted arguments, and multiple prefix support, as well as dynamic prefixes per context.
* Add a bit more docsAustin Hellyer2016-11-261-0/+22
|
* Rename the `http` module to `rest`Austin Hellyer2016-11-251-2/+2
|
* A bit of docsAustin Hellyer2016-11-181-5/+54
|
* Add an 'allow_whitespace' framework configAustin Hellyer2016-11-061-0/+24
| | | | | | | | | | | | | | The option allows whitespace to be optional between a mention and a command. Setting it to true will allow the following scenario to occur, while false will not: ``` <@BOT_ID>about // bot process and executes the "about" command if it exists ```
* Initial commitAustin Hellyer2016-10-181-0/+48