aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Make `User` and `Ban` comparable and hashableacdenisSK2017-07-102-2/+2
|
* Add a way to return all online members in a guildacdenisSK2017-07-091-0/+18
|
* Remove the note from the comment on `reason`acdenisSK2017-07-081-3/+0
| | | | Audit log works and does give a reason, so this note is just false info
* Implement attaching reasons to bansacdenisSK2017-07-083-10/+71
|
* Actually, use `unreachable!` instead of `panic!`acdenisSK2017-07-071-1/+1
|
* Apply the new api change for dms in botsacdenisSK2017-07-073-42/+42
|
* Add an `is_new` to the arguments of the `guild_create` handleracdenisSK2017-07-052-2/+15
| | | | To make a better distinction from a guild that the bot's already in and from the ones it's joining
* Remove `checks_passed` in favour of the `Iterator::all` methodacdenisSK2017-07-041-11/+1
|
* Add a macro hereacdenisSK2017-07-031-48/+32
|
* Fix doc testsacdenisSK2017-07-0216-416/+625
|
* Add a `quit` function`acdenisSK2017-06-301-0/+11
| | | | Fixes #70
* Also update examplesacdenisSK2017-06-291-1/+1
|
* Whoops, and add a fail-safe to an upcomming pr to the compileracdenisSK2017-06-283-145/+50
| | | | https://github.com/rust-lang/rust/pull/42894
* Update readme, docs and add `EventHandler` to the preludeacdenisSK2017-06-282-20/+32
|
* Merge branch "trait-based-event-handling"acdenisSK2017-06-283-937/+322
|
* Add reaction actions (#115)alex2017-06-282-17/+145
| | | Fixes #87
* Add an `on_cached` event (#114)alex2017-06-283-8/+76
| | | | Fixes #89
* Fixed clippy warnings (#118)Kaidan2017-06-282-3/+1
|
* Add support for sending attachments in embeds (#95)alex2017-06-281-0/+10
|
* Make CommandOrAlias and CommandGroup.commands public (#117)Joe K2017-06-282-3/+3
|
* Docs fixesmei2017-06-2713-86/+34
|
* Add missing ModelError variant in description implZeyla Hellyer2017-06-271-0/+1
|
* Prevent Direct Messaging other bot usersZeyla Hellyer2017-06-262-0/+19
| | | | | | The API no longer allows bot users to Direct Message other bot users, so pre-emptively check that the recipient is not a bot. If it is, return a `ModelError::MessagingBot`.
* Fix ModelError doctestZeyla Hellyer2017-06-251-0/+3
|
* Bump to v0.3.0v0.3.0Zeyla Hellyer2017-06-241-1/+1
|
* Fix no-framework, client compilesZeyla Hellyer2017-06-241-1/+1
|
* Fix no-feature testsZeyla Hellyer2017-06-242-1/+14
|
* Make Message::nonce a serde_json::ValueZeyla Hellyer2017-06-233-81/+3
| | | | | | | | | | | | | | | | | | Nonces can actually be almost anything - including booleans - so just use a Value to represent it since very few users will need it. This fixes errors like: ``` WARN:serenity::internal::ws_impl: (╯°□°)╯︵ ┻━┻ Error decoding: {"t":"MESSAGE_CREATE","s":12187872,"op":0,"d":{"type":0,"tts":false,"timestamp":"2017-06-01T01:00:00.000000+00:00","pinned":false,"nonce":"","mentions":[{"username":"redacted","id":"redacted","discriminator":"redacted","avatar":"redacted"}],"mention_roles":[],"mention_everyone":false,"id":"redacted","embeds":[],"edited_timestamp":null,"content":"redacted","channel_id":"redacted","author":{"username":"redacted","id":"redacted","discriminator":"redacted","bot":true,"avatar":"redacted"},"attachments":[]}} ERROR:serenity::client: Shard handler received err: Json(ErrorImpl { code: Message("Unknown i64 value: "), line: 0, column: 0 }) ``` and: ``` WARN:serenity::internal::ws_impl: (╯°□°)╯︵ ┻━┻ Error decoding: {"t":"MESSAGE_CREATE","s":1001192,"op":0,"d":{"type":0,"tts":false,"timestamp":"2017-06-01T01:01:01.000000+00:00","pinned":false,"nonce":true,"mentions":[],"mention_roles":[],"mention_everyone":false,"id":"redacted","embeds":[],"edited_timestamp":null,"content":"bork","channel_id":"redacted","author":{"username":"redacted","id":"redacted","discriminator":"redacted","bot":true,"avatar":"redacted"},"attachments":[]}} ERROR:serenity::client: Shard handler received err: Json(ErrorImpl { code: Message("invalid type: boolean `true`, expected identifier"), line: 0, column: 0 }) ```
* Update max embed lengthZeyla Hellyer2017-06-221-1/+1
| | | | Embeds can now have a combined textual length of 6000, up from 4000.
* Attempt to reconnect if heartbeating failsZeyla Hellyer2017-06-212-7/+7
|
* Reconnect on failed heartbeatsZeyla Hellyer2017-06-212-7/+15
|
* Update dependenciesZeyla Hellyer2017-06-215-40/+40
|
* Extract Discord close codes to constantsZeyla Hellyer2017-06-212-13/+60
|
* Add 'wait' parameter to http::execute_webhookZeyla Hellyer2017-06-203-15/+31
| | | | | | The 'wait' parameter allows you to specify waiting for the Message to be sent prior to receiving a response, which will have Discord include the JSON representation of the Message in the body.
* Fix broken docs links on Permissions structZeyla Hellyer2017-06-171-5/+5
|
* Deprecate a couple Channel methodsZeyla Hellyer2017-06-171-0/+2
| | | | | | | Deprecate `Channel::delete_messages` and `Channel::delete_permission`. These methods aren't available on all of the variants' types, so they shouldn't be on the Channel either.
* Rework shard logic and shard handlingZeyla Hellyer2017-06-165-547/+447
|
* Fix broken link from ModelErrorZeyla Hellyer2017-06-141-0/+1
|
* Re-export all errors from the preludeZeyla Hellyer2017-06-141-0/+8
|
* Call send_files from http::send_fileZeyla Hellyer2017-06-141-35/+7
| | | | | | | | | | | | | | | | | | | When made, the `http::send_files` code was duplicated from `http::send_file`. Instead call `http::send_files`, which provides a fix for when an, e.g. 4xx status code, is received, and the library would continue to deserialize the response as usual. This fixes errors like: ``` Err(Json(ErrorImpl { code: Message("missing field `id`"), line: 1, column: 54 })) ``` Instead returning: ``` Err(Http(InvalidRequest(PayloadTooLarge))) ```
* Reset shard handling on reconnectsZeyla Hellyer2017-06-141-0/+6
| | | | | | After the shard handler successfully reconnects a shard, reset the `last_ack_time` and `last_heartbeat_sent` to avoid going into an endless reconnection loop.
* Make EmbedFooter icon URLs optionalZeyla Hellyer2017-06-141-2/+2
|
* Fix no-framework compilationZeyla Hellyer2017-06-142-1/+3
|
* Split up long documentation lineZeyla Hellyer2017-06-141-1/+2
|
* Add `Member::permissions`alex2017-06-142-0/+33
|
* Switch from #[doc(hidden)] to pub(crate)alex2017-06-1415-122/+65
| | | | | | Switch from using `#[doc(hidden)]` to hide some internal functions to `pub(crate)`. The library now requires rustc 1.18.
* Use HTTPS Connector with remaining HTTP functionsMaiddog2017-06-141-9/+20
|
* Make framework dynamic_prefix accept an &MessageZeyla Hellyer2017-06-133-15/+14
|
* Remove Context::{channel_id, queue}Zeyla Hellyer2017-06-134-89/+61
| | | | | | | | | The `channel_id` field on Context is no longer required internally, and is no longer of use to userland as event handlers are given the channel ID in some way where possible. `queue` is a remnant from when the Context was the primary way to interact with the REST API.
* Fix CurrentUser::invite_urlKen Swenson2017-06-131-14/+61
| | | Use the client ID instead of the user ID.