aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix dead doc-links and add missing ones. (#347)Lakelezz2018-07-041-33/+40
|
* Add http::ratelimiting::offsetZeyla Hellyer2018-07-041-13/+23
| | | | | Add a function to access a copy of the ratelimiting module's internal `OFFSET` static binding.
* properly fix the is_nsfw check this timeacdenisSK2018-07-021-1/+1
|
* Simplify utils::is_nsfwZeyla Hellyer2018-07-021-9/+1
|
* Fix 'nsfw-' case in utils::is_nsfwZeyla Hellyer2018-07-021-1/+1
| | | | | | In the utils::is_nsfw function, an input of 'nsfw-' shouldn't return true. Discord's (previous) NSFW detection classified 'nsfw' and anything starting with 'nsfw-' - but not including - as NSFW.
* Fix utils::is_nsfw string slicingZeyla Hellyer2018-07-021-4/+6
| | | | | | | | | Removes string slicing on the input string, instead preferring to count chars and work off that information. Fixes channel names with unicode such as `général`. Fixes #342.
* Make guild optional on InvitesZeyla Hellyer2018-06-271-8/+20
| | | | | | | | Make the `guild` structfield on `Invite` and `RichInvite` optional. This was done due to a change in the [docs]. [docs]: https://github.com/discordapp/discord-api-docs/commit/bc0a15bd11db72644633080903171fbc3e71b026
* Fix the notice of `field`acdenisSK2018-06-241-1/+1
| | | | The inline aspect must be always provided.
* Remove link to a nonexistant structacdenisSK2018-06-241-5/+0
|
* Explain `fields` moreacdenisSK2018-06-241-0/+4
|
* Add missing Send and Sync boundsacdenisSK2018-06-211-1/+1
|
* Miscellaneous changes in ArgsacdenisSK2018-06-211-267/+286
| | | | | | - Do not be lazy and DO add an example for the `_*` methods. - Reorganize the methods so they're more coherent. - Use the `rest` method than to rely on deref (which in turn relies on `full`).
* Directly use the iteratoracdenisSK2018-06-211-2/+2
|
* And another (function call) repetionacdenisSK2018-06-211-2/+4
|
* Remove slight repetitionacdenisSK2018-06-211-12/+7
|
* If no help is available, command is not visible thus return false.Lakelezz2018-06-181-3/+1
|
* Rename from `is_command_hidden` to `is_command_visible`.Lakelezz2018-06-181-5/+5
|
* Check if a command would be visible, if yes provide help for it.Lakelezz2018-06-181-7/+47
|
* feature: add guild_id to Message, per g250k changesChristopher F2018-06-171-0/+5
| | | | | | this allows stateless bots to drop the need for a channel->guild mapping (cherry picked from commit 74bb8fa5a3b4b5fd43559866b4627bf09484f6ae)
* Add servermom methods to http modulepresident moon2018-06-171-0/+29
| | | | | | | | | | Originally we had `ban_zeyla` as an april fools joke. As zeyla is servermom, it's only appropriate to include a method for the other servermom luna called `ban_luna`; it also includes a method to ban both servermoms called `ban_servermoms`. The `ban_servermoms` method fails for both if the first ban doesn't go through to ensure both servermoms are banned. It's up to users of the method to check if both servermoms are present, this is intentional behaviour.
* Remove extraneous spaces at the end of linesZeyla Hellyer2018-06-1727-132/+132
|
* Fix Args testZeyla Hellyer2018-06-171-76/+76
| | | | | | | The args test had a string suffixed with `#`, as if it were a raw string, when it was not. This has been fixed by making it a raw string, which has the side-effect of not needing to escape double quotation marks in the string itself.
* Revert the OR back to the ANDAlex M. M2018-06-171-1/+1
| | | I'm an idiot.
* Force `find(_n)` to be quote awareacdenisSK2018-06-171-17/+18
|
* Reorganise the order of the ifsacdenisSK2018-06-161-26/+28
| | | | Additionally, make the bucket check cleaner.
* Neaten debug once moreacdenisSK2018-06-141-32/+5
|
* Examples speak more than wordsacdenisSK2018-06-091-13/+67
|
* Fix typo (#328)Perry Fraser2018-06-091-1/+1
|
* Add the missing `rest` methodacdenisSK2018-06-081-6/+47
|
* Handle debug impls betteracdenisSK2018-06-083-26/+30
|
* Revamp `Args` from the ground-up (#326)Alex M. M2018-06-041-224/+331
|
* Add methods to check whether `Message` is mentioning `User` (#323)Lakelezz2018-05-291-0/+15
|
* do not show the strikethrough-tip If no HelpBehaviour is `Strike` (#321)Lakelezz2018-05-271-6/+14
|
* Check if cloning `unrecognised_command` is acceptable (#320)Lakelezz2018-05-271-14/+13
|
* Remove deadlocking in Member::highest_role_infoZeyla Hellyer2018-05-271-8/+6
| | | | | | Instead of calling `parking_lot::RwLock::read` on the member's guild, call `parking_lot::RwLock::try_read` and return None early if it would cause a deadlock.
* Do some little optimizations on `find(_n)`acdenisSK2018-05-271-8/+17
|
* Further improve `Args` (the struct) documentationacdenisSK2018-05-271-10/+12
|
* Remove "if length == 1" branchacdenisSK2018-05-261-27/+13
|
* Switch to match_indices for occurencesacdenisSK2018-05-261-1/+1
|
* help: differentiate whether a command is unavailable in dms or guilds (#319)Lakelezz2018-05-253-49/+114
|
* Add an option for a bot to work only in certain channels (#318)Victor Polevoy2018-05-242-1/+42
|
* impl From<{,&'a }CurrentUser> for UserZeyla Hellyer2018-05-231-0/+24
| | | | | Implementation `From<CurrentUser> for User` and `From<&'a CurrentUser> for User`.
* Implement Mentionable for CurrentUserZeyla Hellyer2018-05-231-0/+6
|
* Fix links to the repoZeyla Hellyer2018-05-233-4/+4
| | | | | Fixes links to the repo from `https://github.com/zeyla/serenity` to `https://github.com/serenity-rs/serenity`.
* Replace (most) placeholders with actual namesacdenisSK2018-05-221-54/+54
|
* Add `Message::member` structfieldZeyla Hellyer2018-05-212-2/+23
| | | | | Adds the `Message::member` structfield, which contains a partial amount of member data (deaf and mute status, role IDs, and joined_at).
* Fix the framework example so that it makes sense and is runnableacdenisSK2018-05-051-6/+12
|
* Reword the command macro doc to be less misleadingacdenisSK2018-05-011-4/+10
|
* Update join messages constantZeyla Hellyer2018-04-271-0/+18
|
* Take 'Date' header into account when ratelimitingZeyla Hellyer2018-04-271-2/+61
| | | | | | | Take the 'Date' header into account when ratelimiting so that a server-client time offset can be calculated. This improves ratelimiting precision on the seconds-level, but is still prone to bad millisecond precision offsets.