| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
This was basically an alias to http::get_voice_regions and likely had
no use case.
|
| |
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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 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
```
|
| |
|
|
|
|
| |
Most of the docs were linking to `enum.EnumName.html#VariantName.v`,
which should have been linking to
`enum.EnumName.html#variant.VariantName`.
|
| |
|
|
|
| |
Refer to the documentation for `serenity::client::ratelimiting::Route`
on how major parameters work.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
| |
The full presence setting allows for manually specifying the online
status and afk field.
|
| |
|