aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix rest::get_guilds doctestAustin Hellyer2016-12-031-3/+4
|
* s/rose_water/rosewaterAustin Hellyer2016-12-031-1/+1
|
* Make rest::edit_profile set new tokenAustin Hellyer2016-12-032-4/+22
| | | | | | | | | | | If a user account changes their profile settings, they'll receive a new token; update the locally stored token for REST requests with this token. Additionally, the `Context::edit_profile` does not need mutability over self. Fixes #25.
* Add rose water colourIllia2016-12-031-0/+2
|
* Paginate rest::get_guilds and add helper methodsAustin Hellyer2016-12-023-9/+74
| | | | | | | | | | | | | | | | | | | | Paginate the rest::get_guilds endpoint, which can be used to retrieve the guilds after-or-before a certain guild's Id, with a limit of results to return (100 is the max). Example usage: ```rs use serenity::client::rest::GuildPagination; let target = GuildPagination::After(GuildId(81384788765712384)); let guilds = context.get_guilds(target, 50); ``` Additionally, add a method of `CurrentUser::guilds()`, to retrieve the current user's guilds. A limit of 100 is set, as (most) users can not be in more than 100 guilds.
* Encase the event storage in an Arc<RwLock>Austin Hellyer2016-12-022-77/+77
| | | | | | Commands should be dispatched more quickly with this patch. This brings down a (locally-tested) average "ping" command response from 278ms to 67ms.
* Allow Role positions to be negativeAustin Hellyer2016-12-012-2/+303
| | | | | The @ everyone role can have a position of -1 _or_ 0, so make it an i64.
* Add Message::guild_id()Austin Hellyer2016-12-011-0/+17
| | | | | | | Searches the Cache for the Id of the guild that the message was posted to - if any - and if the guild and channel data are cached. Requires the `cache` and `method` feature flags be enabled.
* Add 'fooyoo' to Colour structIsaac Dickinson2016-12-011-1/+3
|
* Add fabled_pink to Colour structKen Swenson2016-12-011-0/+2
|
* Fix a typoAustin Hellyer2016-12-012-2/+2
|
* Simplify colour macroAustin Hellyer2016-12-011-3/+2
|
* Re-order dark_green colour alphabeticallykhazhyk2016-12-011-2/+2
|
* Capitalize the hex value for blitz_blueKisei2016-11-301-1/+1
|
* Add documentation for EditMember and EditProfileKisei2016-11-302-0/+15
|
* Make command macro functions publicAustin Hellyer2016-11-301-2/+2
| | | | This will allow the command macro to be used in sub-modules.
* Fix start_integration_syncabalabahaha2016-11-301-2/+2
|
* Add blitz blue colorCrawl2016-11-301-0/+2
|
* Add Blurple to Colour listGetRektByMe2016-11-301-0/+2
| | | | Add a Blurple colour with RGB value 114,137,218.
* Add kerbal colourindiv02016-11-301-0/+2
|
* Release v0.1.0v0.1.0Austin Hellyer2016-11-308-8/+8
|
* Re-order example Cargo.toml'sAustin Hellyer2016-11-308-15/+16
|
* Example should be no-runAustin Hellyer2016-11-301-1/+1
|
* Update readme exampleAustin Hellyer2016-11-302-2/+2
|
* Move the example in the readmeAustin Hellyer2016-11-302-58/+64
|
* Clarify some docsAustin Hellyer2016-11-304-45/+124
|
* Add remaining REST routesAustin Hellyer2016-11-303-8/+85
| | | | | | The status routes were missing from the HTTP module (now the REST module) rewrite, as well as the `GET /guilds/:id/members` route. In addition, remove an unnecessary counter to the global ratelimit mutex.
* Add documentation for examplesAustin Hellyer2016-11-2914-45/+298
| | | | | | | | The examples include a README located in `examples/README.md`, which contains instructions for running these examples. They act as a simple form of tutorial to the library, without getting into too many details.
* Clean up the codebaseAustin Hellyer2016-11-2943-670/+389
|
* Add more shiny readme badgesAustin Hellyer2016-11-291-2/+6
| | | |
* Add initial audio supportAustin Hellyer2016-11-2914-204/+713
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Audio can be played with support by passing one of the following into the `Handler::play` method: `serenity::ext::voice::{ffmpeg, pcm, ytdl}` functions, where - `ffmpeg` accepts a path (such as a `File`); - `pcm` accepts a raw reader source; - `ytdl` accepts a URI, which works with everything youtube-dl supports: <https://github.com/rg3/youtube-dl/blob/master/docs/supportedsites.md> The source can be stopped via [`Handler::stop`]. Receive is supported through [`Handler::listen`], which accepts a `serenity::ext::voice::AudioReceiver` implementation. An example is provided in the form of the file located at `./examples/07_voice.rs`, which can be run by cloning the repo and performing the command `cargo run --example 07_voice`. Prior to running the command, set a bot token as the value of the env variable `DISCORD_TOKEN`. The example supports: - `deafen`: deafens the bot; - `join`: joins a voice channel by ID. The example is a primitive implementation, and requires the ID of the channel to be passed to the bot as a command of `~join 131937933270712320`; - `leave`: leaves the current voice channel, if in one; - `mute`: mutes the bot and will continue to play source audio; - `play`: plays source audio from a URI, through a command like `~play https://www.youtube.com/watch?v=5KJjBRm0ElA`; - `ping`: responds with "Pong!" to ensure the bot is working properly; - `undeafen`: undeafens the bot, if that's actually a word; - `unmute`: unmutes the bot. Documentation for audio can be found at: <https://serenity.zey.moe/serenity/ext/voice/index.html>
* Remove duplicated gateway logicAustin Hellyer2016-11-293-37/+11
|
* Retrieve a new URL on reconnectAustin Hellyer2016-11-291-2/+4
|
* Use html_logo_url instead of a doc scriptAustin Hellyer2016-11-292-12/+1
| | | | | | | | | | The script was made with the eventual purpose to build custom docs. This has been replaced by [cargo-external-doc], which was released a few days after the script was added. Since the only other purpose of the script besides adding the image has been fulfilled by another crate, we can just utilize a rustdoc attribute to do this.
* Add missing REST methodsAustin Hellyer2016-11-281-3/+31
|
* Re-order message builder fileAustin Hellyer2016-11-281-22/+21
|
* Optimize for cached, non-method compilesAustin Hellyer2016-11-285-13/+27
|
* Cargo: Don't have bins for examplesAustin Hellyer2016-11-281-35/+0
| | | | | The examples can already be run via `cargo run --example <filename>`, so there's no need for bin entries for them.
* Fix doctestsAustin Hellyer2016-11-282-4/+4
|
* Fix some clippy lintsAustin Hellyer2016-11-281-7/+7
|
* Update example 07 with framework changesAustin Hellyer2016-11-281-5/+5
|
* Add before/after framework command hooksIllia K2016-11-283-13/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These hooks will each be run prior to or after the command, and will finish execution before executing the command. These can be configured in a Framework via: ```rs client.with_framework(|f| f .before(|_context, message, _command_name| { println!("Got command '{}'", command_name); }) .after(|_context, _message, command_name| { println!("Finished command '{}'", command_name); })); ``` This does introduce a backwards compatibility break, by requiring commands' Context/Message to be borrowed Upgrade path: If not using the `command!` macro, modify command signatures from: ```rs fn some_command(context: Context, message: Message, args: Vec<String>) ``` to ```rs fn some_command(context: &Context, message: &Message, args: Vec<String>) ```
* Improve docs and add new message builder methodsIllia K2016-11-2815-89/+262
| | | | | Add documentation for some missing methods - such as Game methods - and add more methods to the Message Builder.
* Add an initial tiny test suite to get Travis goingAustin Hellyer2016-11-272-0/+54
|
* Correctly track Cache's unavailable guildsAustin Hellyer2016-11-271-0/+6
| | | | | When a guild delete is received, add its Id to the unavailable guild list, and when a create is received, remove it.
* Re-export CreateEmbedFooterKisei2016-11-271-0/+1
|
* Add Context, REST, and model documentationfwrs2016-11-2711-5/+216
| | | | | Add documentation for Context methods, as well as brief documentation for REST functions and model definitions.
* Make send_file use the CreateMessage builderAustin Hellyer2016-11-272-15/+38
|
* Voice example no longer requires 'extras'Austin Hellyer2016-11-263-13/+8
|
* Add a bit more docsAustin Hellyer2016-11-2614-25/+597
|