aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #327 from PvdBerg1998/v0.6.xv0.6.xzeyla2018-06-092-1/+10
|\ | | | | Fix push_codeblock_safe
| * Add test and fix another newline differencePvdBerg2018-06-082-1/+9
| |
| * Fix push_codeblock_safe not adding a newlinePvdBerg2018-06-081-0/+1
| |
* | Merge pull request #322 from Erk-/example_01_fixzeyla2018-06-091-5/+4
|\ \ | |/ |/| Updated example 01 to work with the newest version.
| * Updated example 01 to work with the newest version.Valdemar Erk2018-05-291-5/+4
|/
* Merge branch 'futures' into v0.6.xZeyla Hellyer2018-05-2874-14234/+5489
|\
| * Futures shard manager #298 (WIP) (#300)Joe Burnard2018-05-277-4/+436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * futures shard manager * working shard manager test * shard manager progress * cleanup mess * shard queue processing * shard queue processing is done! * remove unused code * progress (no compile) * shard manager progress * add ReconnectQueue
| * Fix some odd code styleZeyla Hellyer2018-05-271-1/+2
| |
| * Use impl Trait for FuturesZeyla Hellyer2018-05-274-92/+90
| |
| * Update dependenciesZeyla Hellyer2018-05-271-3/+3
| |
| * Add 'send_files' http supportZeyla Hellyer2018-03-267-98/+124
| |
| * Remove a couple of shard debugsZeyla Hellyer2018-03-251-2/+0
| |
| * Merge branch 'master' into futuresZeyla Hellyer2018-03-2521-1209/+427
| |\
| * | Remove `http::FutureResult`, use `error`'sZeyla Hellyer2018-03-251-3/+1
| | |
| * | Remove cache/http methods on structsZeyla Hellyer2018-03-2530-4700/+22
| | |
| * | Rewrite the library to use FuturesZeyla Hellyer2018-02-0461-9094/+6215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrites the library to use Futures. This rewrites all of the gateway, client, cache, most model methods, HTTP, and in a later commit the framework and voice. HTTP has been mostly rewritten to be ergonomic so that it can be used by the user, and has been upgraded to hyper v0.11. The gateway now uses `tokio-tungstenite` v0.4. The client isn't yet in a working state. The models now have a `client` optionally attached to them to make use of `http` and `cache`-utilizing methods. The client isn't needed, in the case that someone is using the library just to deserialize models. The cache is now built around `Rc`s and `RefCell`s, instead of `Arc`s and `RwLock`s. Refer to example 01 for a working example. Much of the library still doesn't work.
| * | Partially revert the video url changeacdenisSK2018-02-041-6/+0
| | |
| * | Inline simple url propertiesacdenisSK2018-02-041-0/+3
| | |
| * | Add video url specifier for CreateEmbed (#269)Andrej2018-02-042-13/+24
| | |
| * | Bump to v0.5.1Zeyla Hellyer2018-02-042-7/+82
| | |
| * | Fix broken docs links caused by model mod changesZeyla Hellyer2018-02-0427-195/+178
| | | | | | | | | | | | | | | Fix broken links caused by the `model` module changes in v0.5.0, which split up the module into sub-modules for better organization.
| * | Add create message builder example (#268)Perry Fraser2018-02-042-0/+50
| | |
| * | Fix customised help related docs (#267)Lakelezz2018-02-042-7/+7
| | |
| * | Multiple audio stream playback, volume control, pausingKyle Simpson2018-02-046-29/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix Speaking state, use latest voice API version * Speaking state would remain stuck on after playing particularly long stretches of audio. So far as I can tell, playing 5 frames of silence BEFORE changing the state seems to do the trick. * Added new constant to make sure the library uses v3 of the voice api, which it is written for. * Heartbeat interval adjusted by * .75 as recommended by Discord. * Initial version of new Audio wrapper. * Single audio file case, as before.. * Loop over all available audio samples. * Combine audio streams, account for volume. * Cheaper explicit Opus silence frames. As per Discord's recommendation, use a well-known 3-byte silence frame when needed. * A bit of cleanup Cleanup some of the code, rename some short-form fields to longer forms (e.g. `s/src/source`), and remove a breaking change. `Handler::play` was changed to return `LockedAudio` instead of `()`. If someone were to rely on `Handler::play` returning `()`, the return type change would break their code. Instead, this functionality has been added to a new `Handler::play_returning` function.
| * | Fix case insensitivity for aliases (#262)Lakelezz2018-02-041-6/+7
| | |
| * | Remove byteorder dep in example 10Zeyla Hellyer2018-02-041-1/+0
| | |
| * | Add simple voice receive exampleZeyla Hellyer2018-02-042-0/+172
| | |
| * | Remove an `Into<Option<T>>`Zeyla Hellyer2018-02-041-2/+2
| | | | | | | | | | | | | | | Technically a bugfix because this made it sort of unusable; instead, users need to explicitly `Some(Box::new(receiver))`.
| * | Make MessageUpdateEvent::embeds a Vec<Embed>Zeyla Hellyer2018-01-281-1/+1
| | | | | | | | | | | | | | | Instead of deserializing the `embeds` field as a `serde_json::Value`, deserialize as a `model::channel::Embed`.
* | | Make Message Builder use &mut self instead of selfPvdBerg2018-05-271-43/+43
| | | | | | | | | | | | This way the builder can be used where taking ownership is impractical.
* | | Add Rich Presence parsing supportZeyla Hellyer2018-05-272-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for parsing Rich Presences. This can not be used for setting activities with bots. Upgrade path: Basically change your import and usage from `serenity::model::gateway::Game` to `serenity::model::gateway::Activity`.
* | | Make builders mutably borrowedZeyla Hellyer2018-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the builders so that they are now mutably borrowed, accepting `&mut self` instead of `self`. Their methods now return `()` instead of `Self`. Upgrade path: Change code such as the following: ```rust channel.send_message(|m| m .embed(|e| e .description("test") .title("title"))); ``` to the following style: ```rust channel.send_message(|mut m| { m.embed(|mut e| { e.description("test"); e.title("title"); e }); m }); ``` Closes #159.
* | | Voice fixes, better API adherence, bitrate control, documentationKyle Simpson2018-05-274-50/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixing silence frame. * Messed that one up while fighting with the borrow checker. Sorry! * Initial machinery for playback position tracking * Mix multiple input AudioType::Opus streams * Encode for stereo, use nicer "soft clip" * First stab at docs for Audio. * Better-er docs for voice::Audio etc. * Bitrate control. * Fix #270, Better handling of the voice api We were mostly doing the voice API wrong, I've changed OpCode names to be correct. We now listenfor both Ready and Hello at connection init, and do soft checks for Heartbeat ACKs. * Adding missing voice opcodes, related structs * Also removes events for messages which cannot be received. * @Zeyla's recommended changes. * New docstrings now have correct style for referring to functions. * Docstrings also have room to breathe (!) * Rand dependency now properly moved behind the `voice` feature. * Slightly cleaner checks at voice connection initialisation. * Various idiomatic changes throughout. * Prevent compilation of Audio docs example. Likely too much machinery in the background to get a working Handler, I think. * Re-fixing the docstrings. * Fixing travis for Audio docs.
* | | Add `lacking_ownership` to `CreateHelpCommand`Brayden Banks2018-05-273-17/+7
| | |
* | | Remove some debugsZeyla Hellyer2018-05-271-2/+0
| | |
* | | Add Rich Presence parsing supportZeyla Hellyer2018-05-2712-148/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for parsing Rich Presences. This can not be used for setting activities with bots. Upgrade path: Basically change your import and usage from `serenity::model::gateway::Game` to `serenity::model::gateway::Activity`.
* | | Remove erroneous `migrations` directoryZeyla Hellyer2018-05-271-0/+0
| | | | | | | | | | | | | | | Remove a folder named `migrations` that was erroneously added by PR #297.
* | | Make builders mutably borrowedZeyla Hellyer2018-05-2724-375/+421
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the builders so that they are now mutably borrowed, accepting `&mut self` instead of `self`. Their methods now return `()` instead of `Self`. Upgrade path: Change code such as the following: ```rust channel.send_message(|m| m .embed(|e| e .description("test") .title("title"))); ``` to the following style: ```rust channel.send_message(|mut m| { m.embed(|mut e| { e.description("test"); e.title("title"); e }); m }); ``` Closes #159.
* | | Remove user account relation docs/functionsLakelezz2018-05-276-33/+3
| | | | | | | | | Remove functions and comment-segments relating to user-accounts.
* | | Permit sending files through the `CreateMessage` builder.Maid Dog2018-05-273-11/+48
| | |
* | | Voice fixes, better API adherence, bitrate control, documentationKyle Simpson2018-05-2711-82/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixing silence frame. * Messed that one up while fighting with the borrow checker. Sorry! * Initial machinery for playback position tracking * Mix multiple input AudioType::Opus streams * Encode for stereo, use nicer "soft clip" * First stab at docs for Audio. * Better-er docs for voice::Audio etc. * Bitrate control. * Fix #270, Better handling of the voice api We were mostly doing the voice API wrong, I've changed OpCode names to be correct. We now listenfor both Ready and Hello at connection init, and do soft checks for Heartbeat ACKs. * Adding missing voice opcodes, related structs * Also removes events for messages which cannot be received. * @Zeyla's recommended changes. * New docstrings now have correct style for referring to functions. * Docstrings also have room to breathe (!) * Rand dependency now properly moved behind the `voice` feature. * Slightly cleaner checks at voice connection initialisation. * Various idiomatic changes throughout. * Prevent compilation of Audio docs example. Likely too much machinery in the background to get a working Handler, I think. * Re-fixing the docstrings. * Fixing travis for Audio docs.
* | | Add `lacking_ownership` to `CreateHelpCommand`Brayden Banks2018-05-275-76/+97
| | |
* | | Use `len_quoted()` for `min_args` and `max_args` (#282)Lakelezz2018-05-271-1/+1
| | |
* | | Properly check if the input is emptyacdenisSK2018-05-271-28/+32
| | |
* | | Drop implementation for ffmpeg containerKyle Simpson2018-05-271-0/+8
| | |
* | | Add documentation to `EventHandler`acdenisSK2018-05-271-54/+54
| | |
* | | Add `unrecognised_command` (#276)Lakelezz2018-05-271-1/+1
| | |
* | | 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.