aboutsummaryrefslogtreecommitdiff
path: root/src/client
Commit message (Collapse)AuthorAgeFilesLines
...
* Add webhook supportAustin Hellyer2016-11-075-0/+367
|
* Remove Context::get_application{s,_info}Austin Hellyer2016-11-061-8/+0
| | | | | | These are aliases of their `http` module equivilants, so they aren't needed, especially on the Context, where they are not associated with the current context.
* Remove Context alias methodsAustin Hellyer2016-11-061-92/+9
| | | | | | Most of the longer named methods were probably never going to be used, but some of the longer aliased methods have been kept and the associated alias removed.
* Fix old ratelimit resets breaking next requestsAustin Hellyer2016-11-061-1/+10
| | | | | | | | | | | If the reset was in the past by a second, then multiplication to determine the difference in time to wait would result in somewhere around the max value of u64 being multiplied by 1000, which caused a multiplication overflow. Instead, if the retry is in the past, just ignore it, as it would have already passed, and continue on with the request, setting the remaining requests allowed by the bucket to the known limit.
* Remove Context::get_voice_regionsAustin Hellyer2016-11-061-4/+0
| | | | | This was basically an alias to http::get_voice_regions and likely had no use case.
* Fix framework locking on MessageCreate dispatchAustin Hellyer2016-11-061-2/+3
| | | | | | The framework will lock on checking if it's initialized, and will not be able to unlock a second time from within the same scope. Fix this by unlocking it once and binding it.
* Add some more documentationAustin Hellyer2016-11-063-22/+100
|
* Move HTTP/ratelimiting into a separate moduleAustin Hellyer2016-11-063-5/+5
|
* Add a prelude for userlandAustin Hellyer2016-11-056-6/+6
| | | | | | | Users can now import all of a prelude via `use serenity::prelude::*;`, which should provide some helpful stuff. As such, the internal prelude is now named `serenity::prelude_internal`, and all internal uses have been adjusted.
* Convert all doc anchors to named anchorsAustin Hellyer2016-11-052-74/+120
| | | | | | | | | | | | | | | | | | | | Convert all of the non-named anchors in docs to named anchors. Example: ```md Kicks a [`Member`](../model/struct.Member.html) from the specified [`Guild`](../model/struct.Guild.html) if they are in it. ``` is now written as: ```md Kicks a [`Member`] from the specified [`Guild`] if they are in it. [`Guild`]: ../model/struct.Guild.html [`Member`]: ../model/struct.Member.html ```
* Fix doc links to enum variantsAustin Hellyer2016-11-052-51/+51
| | | | | | Most of the docs were linking to `enum.EnumName.html#VariantName.v`, which should have been linking to `enum.EnumName.html#variant.VariantName`.
* Support major parameters in ratelimitsAustin Hellyer2016-11-052-80/+135
| | | | | Refer to the documentation for `serenity::client::ratelimiting::Route` on how major parameters work.
* Finalize invite-related documentationAustin Hellyer2016-11-051-2/+19
|
* Add message reactionsAustin Hellyer2016-11-056-2/+187
| | | | | | | | | | | | | | | | | | | | | | Add message reaction structs and an enum to differentiate between the two types of reactions, as well as event decoding and event handlers with dispatches. The following is, more or less, what is added: - `reactions` field to the `Message` struct; - `MessageReaction` struct, which is a consolidated form of reaction, containing the type of reaction, the number of them, and whether the current user has performed that type of reaction; - `Reaction`, a struct containing the information about a reaction - `ReactionType`, an enum to differentiate between the two types of reactions: `Custom` (a guild's custom emoji) and `Unicode` (twemoji); - Decoding for `MESSAGE_REACTION_ADD` and `MESSAGE_REACTION_REMOVE`; - Permission flag `ADD_REACTIONS`; - `Message::react` method; - Three `http` payload senders: `create_reaction`, `delete_reaction`, and `get_reaction_users`; - Three `Context` methods of equal names to the above.
* Abstract opcodes to enumsAustin Hellyer2016-10-221-8/+8
|
* Add ability to fully set a presenceAustin Hellyer2016-10-202-2/+27
| | | | | The full presence setting allows for manually specifying the online status and afk field.
* Initial commitAustin Hellyer2016-10-188-0/+3969