aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove cruft from src/lib.rsAustin Hellyer2017-01-081-57/+0
| | | | This should clean up the docs homepage a bit.
* Code style cleanupAustin Hellyer2017-01-081-1/+1
|
* Fix rs suffixIllia2017-01-051-4/+4
|
* Use $crate in the command macroalex2016-12-241-2/+1
|
* Implement command groups and bucketsIllia2016-12-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement command groups * change to ref mut * Implement framework API. * Remove commands field * Make it all work * Make example use command groups * Requested changes * Implement adding buckets * Add ratelimit check function * Finish everything * Fix voice example * Actually fix it * Fix doc tests * Switch to result * Savage examples * Fix docs * Fixes * Accidental push * 👀 * Fix an example * fix some example * Small cleanup * Abstract ratelimit bucket logic
* Add installation notesAustin Hellyer2016-12-091-0/+17
|
* Add a ShareMap across contextsAustin Hellyer2016-12-051-0/+1
| | | | | | | | The context now exposes, through the Client, a `data` field, which can be accessed safely across contexts. This allows for a custom "shared state" without the need for (ab)using lazy-static.rs. Refer to example 06 for an example on how to use shared data.
* Example should be no-runAustin Hellyer2016-11-301-1/+1
|
* Update readme exampleAustin Hellyer2016-11-301-1/+1
|
* Move the example in the readmeAustin Hellyer2016-11-301-29/+32
|
* Add documentation for examplesAustin Hellyer2016-11-291-6/+56
| | | | | | | | 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-291-1/+1
|
* Use html_logo_url instead of a doc scriptAustin Hellyer2016-11-291-0/+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 a bit more docsAustin Hellyer2016-11-261-4/+4
|
* Move events into their own moduleAustin Hellyer2016-11-251-5/+5
| | | | | | | | | | | | | | | | | | | | The events were cluttering the `model` module, and so are now moved into their own `model::event` module. As users should not usually have to work with events all that much - only currently in some rarely used event handlers - this change should not be much more effort to import from. i.e.: ```rs use serenity::model::event::ChannelPinsAckEvent; ``` vs. the now-old: ```rs use serenity::model::ChannelPinsAckEvent; ```
* Rename the State to CacheAustin Hellyer2016-11-221-5/+5
|
* Don't unnecessarily borrow some if-letsAustin Hellyer2016-11-211-1/+1
|
* A bit of docsAustin Hellyer2016-11-181-1/+1
|
* Add voice connection supportAustin Hellyer2016-11-141-0/+5
|
* Add internal moduleAustin Hellyer2016-11-141-1/+1
| | | | | Create a general `internal` module, and move `prelude_internal` to `internal::prelude`.
* Move the builders to the utilsAustin Hellyer2016-11-131-1/+0
| | | | | | | | | The builders aren't a large enough portion of the library to deserve their own root-level module, so move them to the `utils` module. Additionally, split them into separate files, as the library will be receiving more builders and the single-file pattern was getting rather large.
* Add a clippy configAustin Hellyer2016-11-101-2/+2
|
* Fix some clippy lintsAustin Hellyer2016-11-101-2/+2
|
* slice_patterns is not stableAustin Hellyer2016-11-101-1/+0
|
* Properly shutdown on connection DropAustin Hellyer2016-11-101-0/+1
|
* Fix README exampleAustin Hellyer2016-11-081-4/+8
|
* Add some more documentationAustin Hellyer2016-11-061-3/+3
|
* Add a prelude for userlandAustin Hellyer2016-11-051-1/+2
| | | | | | | 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.
* Fix doc links to enum variantsAustin Hellyer2016-11-051-1/+1
| | | | | | Most of the docs were linking to `enum.EnumName.html#VariantName.v`, which should have been linking to `enum.EnumName.html#variant.VariantName`.
* Fix readme example to properly use frameworkAustin Hellyer2016-10-231-2/+3
|
* Initial commitAustin Hellyer2016-10-181-0/+104