aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement context message queueingTaavi2017-01-011-6/+5
| | | Also the dreaded `ctx <<= "something"` which is actually a mistake.
* Fix doctestAustin Hellyer2016-12-311-12/+17
|
* Fix typoIllia2016-12-313-6/+6
|
* Add guild and channel searchAustin Hellyer2016-12-292-0/+381
|
* Use conditional blocks over macrosAustin Hellyer2016-12-291-112/+0
|
* Remove image/thumbnail embed buildersAustin Hellyer2016-12-182-84/+13
| | | | | | | | 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.
* Allow time::Tm to be passed into embed timestampAustin Hellyer2016-12-181-9/+44
|
* 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
|
* Make Id displays format u64 instead of a mentionAustin Hellyer2016-12-171-3/+3
| | | | | | 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.
* Implement command groups and bucketsIllia2016-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-101-1/+1
| | | | Additionally, flag imports behind feature flags to avoid unused imports.
* Deprecate embed image/thumbnail height/widthAustin Hellyer2016-12-091-36/+10
| | | | | | 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.
* Abstract command fields to typesAustin Hellyer2016-12-091-15/+13
|
* Command builder, quoted args, and multi-prefixesIllia2016-12-091-0/+46
| | | | | 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.
* Implement From<Embed> for CreateEmbedAustin Hellyer2016-12-081-1/+70
|
* Change all try's into ?sacdenisSK2016-12-072-9/+9
| | | This breaks compatibility with < 1.13, but we didn't support that anyway.
* Allow mentionable structs to be used as command argumentsIllia2016-12-071-0/+83
| | | | | Add EmojiIdentifier, allow User, UserId, Role, RoleId, EmojiIdentifier, Channel and ChannelId to be used as arguments for commands and add more parsing functions to utils
* Add more Context docs+permission requirementsAustin Hellyer2016-12-041-1/+22
| | | | | Add more documentation to most of the Context methods, also clarifying which permission/s are required for each method.
* Add documentation for modelsIllia2016-12-041-3/+8
|
* Make Member::colour() return an optional colourAustin Hellyer2016-12-031-2/+1
|
* Derive Eq/Ord on ColourAustin Hellyer2016-12-031-1/+14
|
* Make the default Colour value the actual defaultAustin Hellyer2016-12-031-2/+2
| | | | | The Colour value defaulted to 0x0; this is incorrect, as Discord's default colour value is actually 0x99AAB5.
* s/rose_water/rosewaterAustin Hellyer2016-12-031-1/+1
|
* Add rose water colourIllia2016-12-031-0/+2
|
* Add 'fooyoo' to Colour structIsaac Dickinson2016-12-011-1/+3
|
* Add fabled_pink to Colour structKen Swenson2016-12-011-0/+2
|
* Simplify colour macroAustin Hellyer2016-12-011-3/+2
|
* Re-order dark_green colour alphabeticallykhazhyk2016-12-011-2/+2
|
* Capitalize the hex value for blitz_blueKisei2016-11-301-1/+1
|
* Add documentation for EditMember and EditProfileKisei2016-11-302-0/+15
|
* Add blitz blue colorCrawl2016-11-301-0/+2
|
* Add Blurple to Colour listGetRektByMe2016-11-301-0/+2
| | | | Add a Blurple colour with RGB value 114,137,218.
* Add kerbal colourindiv02016-11-301-0/+2
|
* Clean up the codebaseAustin Hellyer2016-11-294-99/+3
|
* Re-order message builder fileAustin Hellyer2016-11-281-22/+21
|
* Fix some clippy lintsAustin Hellyer2016-11-281-7/+7
|
* Improve docs and add new message builder methodsIllia K2016-11-284-30/+171
| | | | | Add documentation for some missing methods - such as Game methods - and add more methods to the Message Builder.
* Re-export CreateEmbedFooterKisei2016-11-271-0/+1
|
* Add a bit more docsAustin Hellyer2016-11-263-6/+110
|
* Remove the 'extras' feature flagAustin Hellyer2016-11-263-61/+4
| | | | | | There aren't many things behind this flag (6), and it only causes annoyances for locally-generated docs, which won't show these mostly-useful items behind the flag.
* Rename PublicChannel to GuildChannelAustin Hellyer2016-11-252-6/+6
|
* Rename the `http` module to `rest`Austin Hellyer2016-11-252-5/+5
|
* Rename guild structs to Guild and PartialGuildAustin Hellyer2016-11-241-2/+2
|
* Ensure embed fields are inline by defaultAustin Hellyer2016-11-231-1/+1
| | | | | | | 90% of use cases require embed fields to be inlined, so it's a better default. Also this makes the documentation accurate.
* Rename the State to CacheAustin Hellyer2016-11-221-47/+47
|
* Don't typo CreateEmbed::image fieldAustin Hellyer2016-11-211-1/+1
|
* Add support for creating embed imagesAustin Hellyer2016-11-212-0/+49
|
* Fix cond. compile across multiple feature targetsAustin Hellyer2016-11-191-71/+57
| | | | | | | | Fixes conditional compilation across multiple combinations of feature targets, where it was assumed a second feature would be enabled by something that requires a feature to be enabled. This also fixes an EOF compilation error on no-feature builds.