aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework/src
Commit message (Collapse)AuthorAgeFilesLines
* Update examples' unwraps to expects and imports as nested (#435)Lakelezz2018-11-121-16/+20
|
* Add Function to neutralise Mentions (#414)Lakelezz2018-10-301-0/+31
|
* Prefix only Command (#416)Lakelezz2018-10-151-0/+3
|
* Add single group help (#385)Lakelezz2018-09-111-0/+3
|
* Suggest similar commands when using help (#377)Lakelezz2018-09-091-0/+5
|
* Fix `has_correct_permissions` when no guild is available (#376)Lakelezz2018-08-311-2/+2
|
* Fix default command upon shortcut prefix and passing sub-commands to ↵Lakelezz2018-08-071-10/+24
| | | | default-command (#358)
* Use `Args::full` in the framework exampleacdenisSK2018-08-021-1/+1
|
* Add default-commands for command-groups (#351)Lakelezz2018-07-211-0/+2
|
* Support multiple prefixes for command-groups (#343)Lakelezz2018-07-151-3/+9
|
* Add checks for groups (#349)Lakelezz2018-07-151-2/+31
|
* help: differentiate whether a command is unavailable in dms or guilds (#319)Lakelezz2018-05-251-4/+2
|
* Fix links to the repoZeyla Hellyer2018-05-231-1/+1
| | | | | Fixes links to the repo from `https://github.com/zeyla/serenity` to `https://github.com/serenity-rs/serenity`.
* Add `unrecognised_command` (#276)Lakelezz2018-02-151-0/+5
|
* Fix customised help related docs (#267)Lakelezz2018-01-311-5/+5
|
* Add latency command to example 05Zeyla Hellyer2018-01-061-0/+47
|
* Fix compilation of examplesZeyla Hellyer2017-12-161-3/+5
|
* Make help-commands customisable (#227)Lakelezz2017-11-301-12/+60
|
* Make the Client return a ResultZeyla Hellyer2017-11-031-1/+1
| | | | | | | | The client now returns a Result in preparation of a future commit. Upgrade path: Handle the case of an error via pattern matching, or unwrap the Result.
* Remove `on_` prefix to EventHandler tymethodsZeyla Hellyer2017-10-221-1/+1
| | | | | It was voted that the `on_` prefix is unnecessary, so these have been dropped.
* Switch to parking_lot::{Mutex, RwLock}Zeyla Hellyer2017-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to the `parking_lot` crate's implementations of `std::sync::Mutex` and `std::sync::RwLock`, which are more efficient. A writeup on why `parking_lot` is more efficient can be read here: <https://github.com/Amanieu/parking_lot> Upgrade path: Modify `mutex.lock().unwrap()` usage to `mutex.lock()` (not needing to unwrap or handle a result), and `rwlock.read().unwrap()`/`rwlock.write().unwrap()` usage to `rwlock.read()` and `rwlock.write()`. For example, modify: ```rust use serenity::CACHE; println!("{}", CACHE.read().unwrap().user.id); ``` to: ```rust use serenity::CACHE; println!("{}", CACHE.read().user.id); ```
* `to_owned` -> `to_string`acdenisSK2017-10-091-2/+2
|
* Fix tests and example 05Zeyla Hellyer2017-09-241-1/+1
|
* Note the standard_framework feature in examplesZeyla Hellyer2017-09-091-1/+1
| | | | | | Examples 05 through 07 require the `standard_framework` feature to be enabled, but the examples and documentation for them did not reference it.
* Add more info on methods in framework exampleLakelezz2017-09-061-4/+41
| | | Add `delimiters()`, `role_by_name()` and `allowed_roles()` to example 05.
* Fix examples (#151)Maiddog2017-08-281-3/+6
|
* Move builtin framework impl to its own moduleZeyla Hellyer2017-08-191-4/+5
| | | | | | | | | | | | | | | | | The framework is now moved in its entirity to the `framework` module, with the `Framework` trait currently on its own and the builtin implementation provided. The builtin implementation has been renamed to "Standard". Upgrade path: Rename the `BuiltinFramework` import to `StandardFramework`. Instead of importing builtin framework items from `serenity::framework`, import them from `serenity::framework::standard`. This is the beginning to #60. The root `framework` module (non-standard implementation) will be built more by the time it's closed.
* Update examplesacdenisSK2017-08-141-3/+3
|
* Update examplesacdenisSK2017-08-061-10/+14
|
* Run clippy on examplesZeyla Hellyer2017-06-141-6/+2
|
* Deprecate Client::login, add Client::newZeyla Hellyer2017-06-061-1/+1
|
* Update the way errors are handled in dispatchIllia2017-04-191-2/+13
|
* Remove selfbot supportZeyla Hellyer2017-04-051-0/+194
While selfbots have always been "roughly tolerated", lately they have been tolerated to less of a degree. The simple answer is to no longer support selfbots in any form. This is done for a few of reasons: 1) in anticipation of selfbots no longer being tolerated; 2) there are few reasons why one should make a selfbot in Rust and not a scripting language; 3) there are alternatives (i.e. discord-rs) that still support userbots. Selfbots are simply not a goal of the maintainer of serenity. Upgrade path: Don't use selfbots with serenity. Use discord-rs instead. The following has been removed: Enums: - `RelationshipType` Structs: - `FriendSourceFlags` - `ReadState` - `Relationship` - `SearchResult` - `SuggestionReason` - `Tutorial` - `UserConnection` - `UserGuildSettings` - `UserSettings` Removed the following fields: - `CurrentUser::mobile` - Ready::{ analytics_token, experiments, friend_suggestion_count, notes, read_state, relationships, tutorial, user_guild_settings, user_settings, } Removed the following methods: - `Client::login_user` Deprecated `Client::login_bot` in favour of `Client::login`. Removed `client::LoginType`. The following no longer take a `login_type` parameter: - `Context::new` - `Shard::new` `Shard::sync_guilds` has been removed. The `client::Error::{InvalidOperationAsBot, InvalidOperationAsUser}` variants have been removed. The following event handlers on `Client` have been removed: - `on_friend_suggestion_create` - `on_friend_suggestion_delete` - `on_relationship_add` - `on_relationship_remove` - `on_user_guild_settings_update` - `on_note_update` - `on_user_settings_update` The following `client::rest` functions have been removed: - `ack_message` - `edit_note` - `get_user_connections` - `search_channel_messages` - `search_guild_messages` The following `client::rest::ratelimiting::Route` variants have been removed: - `ChannelsIdMessagesSearch` - `GuildsIdMessagesSearch` - `UsersMeConnections` The following fields on `ext::cache::Cache` have been removed: - `guild_settings` - `relationships` - `settings` while the following methods have also been removed: - `update_with_relationship_add` - `update_with_relationship_remove` - `update_with_user_guild_settings_update` - `update_with_user_note_update` - `update_with_user_settings_update` The following methods have been removed across models: - `ChannelId::{ack, search}` - `Channel::{ack, search}` - `Group::{ack, search}` - `GuildChannel::{ack, search}` - `GuildId::{search, search_channels}` - `Guild::{search, search_channels}` - `Message::ack` - `PartialGuild::{search, search_channels}` - `PrivateChannel::{ack, search}` - `UserId::{delete_note, edit_note}` - `User::{delete_note, edit_note}` The following events in `model::events` have been removed: - `FriendSuggestionCreateEvent` - `FriendSuggestionDeleteEvent` - `MessageAckEvent` - `RelationshipAddEvent` - `RelationshipRemoveEvent` - `UserGuildSettingsUpdateEvent` - `UserNoteUpdateEvent` - `UserSettingsUpdateEvent` Consequently, the following variants on `model::event::Event` have been removed: - `FriendSuggestionCreate` - `FriendSuggestionDelete` - `MessageAdd` - `RelationshipAdd` - `RelationshipRemove` - `UserGuildSettingUpdate` - `UserNoteUpdate` - `UserSettingsUpdate` The `utils::builder::Search` search builder has been removed.