aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Support webp/gif avatarsAustin Hellyer2016-12-282-6/+28
| | | | | If the avatar hash begins with "a_", then the avatar is animated and is a GIF. Otherwise, use WEBP.
* Accept u64 shard countsAustin Hellyer2016-12-266-14/+17
|
* Use $crate in the command macroalex2016-12-244-9/+7
|
* Match event namesAustin Hellyer2016-12-221-107/+63
|
* Simplify event decodingAustin Hellyer2016-12-221-62/+62
|
* Abstract event decoders to associated functionsAustin Hellyer2016-12-221-260/+682
| | | | | | Abstract the logic from simply `Event::decode` and `VoiceEvent::decode` to each individual event variant struct, in the form of associated `decode` functions.
* Fix grammar in framework help the commandzeyla2016-12-211-1/+1
|
* Add `on_message` exampleindiv02016-12-211-0/+16
|
* (╯°□°)╯︵ ┻━┻Austin Hellyer2016-12-194-6/+14
|
* Clarify command missing argument messageAustin Hellyer2016-12-191-1/+1
|
* Remove image/thumbnail embed buildersAustin Hellyer2016-12-183-86/+15
| | | | | | | | When implemented, it was thought that images and thumbnails would be able to have their height/width specified. This isn't the case, and so the image/height methods were deprecated on the builders. Time has passed, so just remove them in favour of direct methods on CreateEmbed instead.
* Fix a typo in UserId::find docsAustin Hellyer2016-12-181-1/+1
|
* Allow time::Tm to be passed into embed timestampAustin Hellyer2016-12-182-10/+45
|
* No Z or +XX:XXChristopher F2016-12-181-3/+4
| | | | Eventual Consistency:tm:
* Add documentation regarding ISO-8601 to embedsChristopher F2016-12-181-0/+7
|
* Fix framework message position boundary splitsAustin Hellyer2016-12-181-18/+21
| | | | | | | The framework would take the length of the prefix in bytes, and then search for a command either directly after the byte length _and_ plus one for a command. Instead, ensure that the message is longer than the prefix.
* Fix Message::delete()Austin Hellyer2016-12-181-7/+7
|
* Default Framework command use_quotes to falseAustin Hellyer2016-12-181-1/+1
|
* Add framework config to ignore webhook messagesIllia2016-12-182-1/+23
|
* Fix current application decodingAustin Hellyer2016-12-182-6/+13
| | | | | | | | | The endpoint for retrieving the current application does not return a `flags`, so don't try to decode it. Additionally, rename `get_application_info` to `get_current_application_info` and create a new `get_application_info` for getting the current user's applications by Id.
* Fix framework before checkAustin Hellyer2016-12-181-1/+1
| | | | | | The framework would ignore the `before` function if the command was not ran by an owner. Instead, flip the conditions so that it's always run, and then the result is succeeded by an owner check.
* Expose message webhook IdsIllia2016-12-182-0/+10
|
* Fix framework command cooldownsAustin Hellyer2016-12-171-1/+1
|
* Add guild splash URL methodsAustin Hellyer2016-12-171-0/+23
|
* Remove useless cache useAustin Hellyer2016-12-171-3/+0
|
* Make Id displays format u64 instead of a mentionAustin Hellyer2016-12-173-11/+70
| | | | | | Instead of mentioning the channel, role, or user on an Id display format, format its inner u64 instead. Instead, use `Id::mention()` to accomplish the equivilant.
* Remove cache feature dependency for frameworkAustin Hellyer2016-12-163-56/+78
|
* Make 'voice' feature not require 'cache'Austin Hellyer2016-12-166-8/+19
| | | | | | | | The voice module required the cache feature in order to access the current user's Id. Instead, just copy the Id into the VoiceManager and distribute it from there -- the memory impact will be very minimal in comparison to the benefits of not needing to constantly unlock the Cache and not needing the user to be forced to use the Cache.
* Simplify gateway identify compressionAustin Hellyer2016-12-161-7/+2
|
* Modify examples to point to current repoAustin Hellyer2016-12-167-7/+7
| | | | | | | | | | | Instead of pointing to the current minor version, the examples' `Cargo.toml`s should be a relative path to the current cloned repo. This improves the examples by: 1. always being up-to-date if major or minor version updates occur; 2. being more up-to-standard with the examples' readme; 3. making debugging the library locally easier (not having to constantly modify the version to a path).
* Framework: format argument number on parse errorIllia2016-12-161-2/+9
|
* Fix framework owners_only checkIllia2016-12-161-6/+8
|
* Cleanup YAML definition layoutsAustin Hellyer2016-12-1546-185/+211
|
* Fix User::avatar_url + add Id display testsAustin Hellyer2016-12-153-2/+38
| | | | | User::avatar_url was formatting the user's Id as a mention, rather than the inner u64.
* Release v0.1.3 for some hotfixesv0.1.3Austin Hellyer2016-12-142-1/+19
|
* Plain help: put groups on their own lineAustin Hellyer2016-12-141-0/+2
|
* Fix plain help command usage outputAustin Hellyer2016-12-141-0/+2
|
* Framework blocks, disabled commands, improvementsIllia2016-12-145-48/+207
|
* Release v0.1.2v0.1.2Austin Hellyer2016-12-142-6/+103
|
* Framework requires cacheAustin Hellyer2016-12-142-5/+4
|
* Slightly rework framework bucketsAustin Hellyer2016-12-146-207/+200
|
* Don't mutate token for bots on profile changezeyla2016-12-131-2/+4
|
* Implement command groups and bucketsIllia2016-12-1314-131/+775
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix readme typoAustin Hellyer2016-12-121-1/+1
| | | | Too many setting git remotes today.
* Add emoji URL generation methodsAustin Hellyer2016-12-122-0/+16
|
* Add related projects to readmeAustin Hellyer2016-12-121-1/+16
|
* Cleanup gateway prepAustin Hellyer2016-12-121-4/+1
|
* More config for CreateCommand, add various methodsIllia2016-12-1023-179/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | 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;
* Fix no-cache+method conditional compilesAustin Hellyer2016-12-109-30/+38
| | | | Additionally, flag imports behind feature flags to avoid unused imports.
* Deprecate embed image/thumbnail height/widthAustin Hellyer2016-12-092-43/+12
| | | | | | The height and width fields for embed images and thumbnails can not be set - whereas originally there may have been plans to - so deprecate them and remove in v0.3.0.