aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Change signature of EventHandler::message_update and the dispatch call to ↵fix_message_updateMishio5952018-09-052-4/+2
| | | | account for situations where the new message is not cached
* Add Member::user_idZeyla Hellyer2018-09-051-0/+14
| | | | | Adds a `user_id` method to `Member`, which is a shortcut for retrieving the member's user ID.
* Fix `has_correct_permissions` when no guild is available (#376)Lakelezz2018-08-311-3/+7
|
* Refactor Help (#375)Lakelezz2018-08-311-411/+482
|
* Add newline in MessageBuilder::push_codeblock_safeZeyla Hellyer2018-08-301-5/+7
| | | | | | | | | | | | | | | | | | | | | | | MessageBuilder::push_codeblock_safe did not add a newline after the language or code fence, resulting in an output like: ```code here``` or: ```rustcode here``` This commit fixes that, and makes the equivalent outputs: ``` code here``` and: ```rust code here``` Closes #374.
* Add more unit tests for MessageBuilderZeyla Hellyer2018-08-301-0/+205
|
* Old message on update (#368)Adelyn2018-08-264-32/+94
|
* Move low-level http functions to a raw moduleZeyla Hellyer2018-08-243-1738/+1756
| | | | | | Move the low-level http functions that work with serde maps directly into an `http::raw` module, and re-export them from the `http` module for backwards compatibility purposes.
* Properly link to User in Game docsZeyla Hellyer2018-08-241-0/+2
|
* Add support for session start info in BotGatewayZeyla Hellyer2018-08-241-0/+16
| | | | | Add support for the new information describing the current session start ratelimits given in the GET /gateway/bot endpoint.
* Make `is_command_visible` work with DMs. (#369)Maiddog2018-08-171-0/+6
|
* Change HTTP Bulk Delete from DELETE to POSTAdelyn2018-08-171-1/+1
|
* Fix GuildChannel::_permissions_for on no-cacheZeyla Hellyer2018-08-151-1/+2
| | | | | Fix the compilation of `GuildChannel::_permissions_for` when the `cache` feature is disabled.
* Fix routing for http::create_private_channelZeyla Hellyer2018-08-131-1/+1
|
* Use `to_`- and `as_`-methods instead of `get` and `find` on Id newtypesLakelezz2018-08-1215-52/+173
|
* Revert "Send silence frames upon connection (Fix #301)"Zeyla Hellyer2018-08-112-5/+3
| | | | | | This reverts commit 83a0c85b0bf87cb4272b5d6e189d139fc31a6d23. This makes voice sending work again.
* Add Colour::hexMishio5952018-08-111-0/+16
| | | | (cherry picked from commit 6c94e05f6a8de131d0ffc913fd6ccbad602b339e)
* Make default-command receive every bit of the command upon failureLakelezz2018-08-111-4/+3
|
* Use one macro instead of the same code twice, avoid seperated changes. (#365)Lakelezz2018-08-111-18/+13
|
* Fix `iter_quoted`'s doctestacdenisSK2018-08-101-2/+3
|
* Fix all the dead links in the docsErk-2018-08-0946-558/+551
|
* [routing] Fix various incorrect routes. (#364)Lymia Aluysia2018-08-081-4/+4
|
* [http] Fix some routing issuesZeyla Hellyer2018-08-081-4/+4
| | | | | | | | | | | Fix the following issues with the routing: - AddMemberRole now POSTs instead of DELETEs - GuildBanUser now POSTs instead of DELETEs - CreateRole now POSTs instead of DELETEs - CreateWebhook now POSTs instead of DELETEs These issues arose from commit hash bbbf63868a8ef3c0f21c1896f7afb96f4d8fbcc1.
* Fix erroneous deadlock detected messages. (#363)Lymia Aluysia2018-08-081-10/+10
|
* Decringe an old commentacdenisSK2018-08-081-2/+1
|
* TypoacdenisSK2018-08-071-1/+1
|
* Capitalise iacdenisSK2018-08-071-4/+4
|
* Refactor docs in `Args`acdenisSK2018-08-071-83/+102
| | | | Use Note headings also.
* Reword `ArgError`'s docs a littleacdenisSK2018-08-071-3/+2
|
* Unwrap `rfind`acdenisSK2018-08-071-6/+1
|
* Fix a usage of a private function in a testZeyla Hellyer2018-08-071-1/+1
|
* Fix compilation + tests on certain feature combosZeyla Hellyer2018-08-077-81/+132
| | | | | | | | On certain feature combinations, compilation and tests would not function correctly. This commit goes through a number of feature combinations and gates some tests behind the required features and fixes other compilation errors.
* Fix some documentation spacingZeyla Hellyer2018-08-071-17/+11
|
* Fixes all of the dead links in permissions. (#359)Erk-2018-08-071-75/+75
|
* Added support for the new PRIORITY_SPEAKER permission (#360)Erk-2018-08-071-0/+8
|
* Fix default command upon shortcut prefix and passing sub-commands to ↵Lakelezz2018-08-071-11/+28
| | | | default-command (#358)
* Do not return Result from main in testsacdenisSK2018-08-071-2/+10
| | | | This feature is special to 1.26, but we support 1.25
* Dereference a destructure insteadZeyla Hellyer2018-08-061-3/+3
|
* Remove match ergonomics usageZeyla Hellyer2018-08-061-4/+4
| | | | We support rustc 1.25.0, but match ergonomics are a 1.26.0 feature.
* Remove usage of inclusive range syntaxZeyla Hellyer2018-08-061-1/+1
| | | | We target 1.25.0, but inclusive range is 1.26.0 syntax.
* Pass failed sub-command to default-command (#357)Lakelezz2018-08-061-1/+2
| | | | Pass failed sub-command to default-command.
* Add simple no-parse getters and advancer to `Args`acdenisSK2018-08-051-1/+67
|
* Fix Game From impls on no-model compilationZeyla Hellyer2018-08-051-2/+10
|
* Make http::fire, http::request publicZeyla Hellyer2018-08-052-48/+207
|
* [http] Abstract out routing methods and pathsZeyla Hellyer2018-08-053-654/+1694
|
* Make http::wind perform requestsZeyla Hellyer2018-08-051-57/+64
| | | | | | | Instead of making it take response objects and verifying the status code, it now performs requests itself. This further simplifies HTTP function code.
* Add an internal http::fire methodZeyla Hellyer2018-08-041-259/+117
| | | | | | | Add an internal `http::fire` method, which performs a request and then deserializes the response reader as the provided type bound. This simplifies a lot of request function code.
* Remove an unnecessary lifetime on fn signatureZeyla Hellyer2018-08-041-1/+1
|
* Redo how requests are formed in HTTP moduleZeyla Hellyer2018-08-043-616/+688
| | | | | | | | | | Instead of passing around a function that builds an HTTP client request builder, pass around a struct that contains the necessary information _to_ build that request builder. Additionally, instead of using a macro to generate requests, just call a request function. This saves some required code expansion and is just easier to read and maintain.
* Maintain a single, re-used HTTP clientZeyla Hellyer2018-08-042-35/+21
| | | | | | | Instead of creating a new HTTP client for each request, keep a single one for every HTTP request. This will make things faster due to keepalives.