Tags: arcanebot/twilight
Tags
util-0.5.0 This major version bump of the Util crate is done to match all of the other crates in the ecosystem receiving a major version bump. There are no breaking changes.
twilight-0.5.0 The advertisement crate has been updated to bump development dependencies.
standby-0.5.0 This major version bump of the Standby crate is done to match all of the other crates in the ecosystem receiving a major version bump. There are no changes.
model-0.5.0 Upgrade Path Remove references to `Guild::nsfw`, `Guild::region`, `PartialGuild::nsfw`, `PartialGuild::region`, and `TemplateGuild::region`. Replace the following usages: ```diff -twilight_model::channel::invite::TargetUserType +twilight_model::channel::invite::TargetType -twilight_model::gateway::payload::update_status::UpdateStatus +twilight_model::gateway::payload::update_presence::UpdatePresence -twilight_model::gateway::payload::update_status::UpdateStatusInfo +twilight_model::gateway::payload::update_presence::UpdatePresencePayload ``` Additions Support for Slash Commands has been added. New models are present in the `application` module ([twilight-rs#932]). Enhancements The following models have been updated: - `twilight_model::channel::message::MessageFlags`: added `EPHEMERAL` - `twilight_model::channel::Message`: added `application_id`, `interaction` - `twilight_model::channel::WebhookType`: added `Application` - `twilight_model::gateway::Event`: added `InteractionCreate` - `twilight_model::gateway::payload::Ready`: added `application` - `twilight_model::guild::PartialMember`: added `permissions` Changes The `TargetType` re-export (`TargetUserType`) has been removed ([twilight-rs#847] - [@7596ff]). `Guild::nsfw` and `PartialGuild::nsfw` have been removed ([twilight-rs#890] - [@7596ff]). `UpdateStatus` and `UpdateStatusInfo` have been renamed to `UpdatePresence` and `UpdatePresencePayload` respectively ([twilight-rs#902] - [@7596ff]). At least one `Activity` is required when building an `UpdatePresence` payload. `UpdatePresenceError` and `UpdatePresenceErrorType` have been created to validate this ([twilight-rs#891] - [@7596ff]). References to `Guild::region` have been removed. This includes `PartialGuild::region` and `TemplateGuild::region` ([twilight-rs#930] - [@7596ff]). [twilight-rs#847]: twilight-rs#847 [twilight-rs#890]: twilight-rs#890 [twilight-rs#891]: twilight-rs#891 [twilight-rs#902]: twilight-rs#902 [twilight-rs#930]: twilight-rs#930 [twilight-rs#932]: twilight-rs#932 [@7596ff]: https://github.com/7596ff
mention-0.5.0 This major version bump of the Mention crate is done to match all of the other crates in the ecosystem receiving a major version bump. There are no changes.
lavalink-0.5.0 This major version bump of the Lavalink crate is done to match all of the other crates in the ecosystem receiving a major version bump. There are no changes.
http-0.5.0 Upgrade Path Remove usage of `GetReactions::before`, `ErrorType::Formatting`, `ErrorType::Ratelimiting`, `CreateMessage::attachment`, `CreateMessage::attachments`, `CreateGuild::region`, `UpdateGuild::region`, and `Result`. Update usage of `CreateGuildFromTemplateError`, `CreateTemplateError`, `SearchGuildMembersError`, `UpdateTemplateError`. Replace the following usages: ```diff -twilight_http::routing::Route::DeleteMessageSpecficReaction +twilight_http::routing::Route::DeleteMessageSpecificReaction -twilight_http::request::channel::invite::CreateInvite::target_user +twilight_http::request::channel::invite::CreateInvite::target_user_id -twilight_http::request::channel::invite::CreateInvite::target_user_type +twilight_http::request::channel::invite::CreateInvite::target_type ``` `UpdateStageInstance` requests now look like this: ```diff -client.update_stage_instance(channel_id, topic)?.await?; +client.update_stage_instance(channel_id) + .topic(topic)? + .await?; ``` Additions Support for Slash Commands has been added ([twilight-rs#932]). The following HTTP requests have been added: - `create_followup_message` - `create_global_command` - `create_guild_command` - `delete_followup_message` - `delete_global_command` - `delete_guild_command` - `delete_interaction_original` - `get_command_permissions` - `get_global_commands` - `get_guild_command_permissions` - `get_guild_commands` - `interaction_callback` - `set_command_permissions` - `set_global_commands` - `set_guild_commands` - `update_command_permissions` - `update_followup_message` - `update_global_command` - `update_guild_command` - `update_interaction_original` Enhancements The following HTTP errors have been added: - `10063` `UnknownApplicationCommand` - `10066` `UnknownApplicationCommandPermissions` - `40041` `CommandNameAlreadyExists` The following HTTP ratelimiting paths have been added: - `ApplicationCommand(u64)` - `ApplicationCommandId(u64)` - `ApplicationGuildCommand(u64)` - `ApplicationGuildCommandId(u64)` - `InteractionCallback(u64)` The following HTTP routes have been added: `CreateGlobalCommand { application_id }` `CreateGuildCommand { application_id, guild_id }` `DeleteGlobalCommand { application_id, command_id }` `DeleteGuildCommand { application_id, command_id, guild_id }` `DeleteInteractionOriginal { application_id, interaction_token }` `GetCommandPermissions { application_id, command_id, guild_id }` `GetGlobalCommands { application_id }` `GetGuildCommandPermissions { application_id, guild_id }` `GetGuildCommands { application_id, guild_id }` `InteractionCallback { interaction_id, interaction_token }` `SetCommandPermissions { application_id, guild_id }` `SetGlobalCommands { application_id }` `SetGuildCommands { application_id, guild_id }` `UpdateCommandPermissions { application_id, command_id, guild_id }` `UpdateGlobalCommand { application_id, command_id }` `UpdateGuildCommand { application_id, command_id, guild_id }` `UpdateInteractionOriginal { application_id, interaction_token }` Changes `GetReactions::before`, and its corresponding `Route::GetReactionUsers::before` has been removed ([twilight-rs#810] - [@7596ff]). `CreateInvite::{target_user, target_user_type}` have been removed [twilight-rs#847] - [@7596ff]). The `Formatting` and `Ratelimiting` HTTP error variants have been removed, as they are unused ([twilight-rs#854] - [@vivian]). In `UpdateStageInstance`, the `topic` field is no longer required ([twilight-rs#895] - [@7596ff]). The `tracing` dependency is now optional, and enabled by default ([twilight-rs#910] - [@vivian]). The following errors have been properly converted to the new `Error` standard ([twilight-rs#898] - [@7596ff]): - `CreateGuildFromTemplateError` - `CreateTemplateError` - `SearchGuildMembersError` - `UpdateTemplateError` A typo in the name of `DeleteMessageSpecificReaction` has been fixed ([twilight-rs#927] - [@vivian]). `CreateMessage::{attachment, attachments}` have been removed ([twilight-rs#929] - [@7596ff]). References to `Guild::region` have been removed. This includes the `region` method on `CreateGuild` and `UpdateGuild` ([twilight-rs#930] - [@7596ff]). `Result` has been removed ([twilight-rs#931] - [@7596ff]). [twilight-rs#810]: twilight-rs#810 [twilight-rs#847]: twilight-rs#847 [twilight-rs#854]: twilight-rs#854 [twilight-rs#895]: twilight-rs#895 [twilight-rs#898]: twilight-rs#898 [twilight-rs#910]: twilight-rs#910 [twilight-rs#927]: twilight-rs#927 [twilight-rs#929]: twilight-rs#929 [twilight-rs#930]: twilight-rs#930 [twilight-rs#931]: twilight-rs#931 [twilight-rs#932]: twilight-rs#932 [@7596ff]: https://github.com/7596ff [@vivian]: https://github.com/vivian
gateway-queue-0.5.0 This major version bump of the Gateway Queue is done to match all of the other crates in the ecosystem receiving a major version bump. There are no changes.
gateway-0.5.0 Upgrade Path Replace `zlib` features with their new names. Create a `Cluster` or `Shard` like this: ```diff -let cluster = Cluster::new(token, intents).await?; -let mut events = cluster.events(); +let (cluster, mut events) = Cluster::new(token, intents).await?; ``` Replace references to `UpdateStatus` and `UpdateStatusInfo` with `UpdatePresence` and `UpdatePresencePayload` respectively. Ensure at least one `Activity` is present in `UpdatePresence`. Changes The `zlib` feature choices have been renamed from `'stock-zlib` and `simd-zlib` to `zlib-stock` and `zlib-simd` respectively ([twilight-rs#829] - [@vivian]). `Cluster::new`, `ClusterBuilder::build`, `Shard::new`, and `ShardBuilder::build` now return a tuple with two elements: the cluster or shard itself and a stream of events. See the PR for more details ([twilight-rs#832] - [@vivian]). `UpdateStatus` and `UpdateStatusInfo` have been renamed to `UpdatePresence` and `UpdatePresencePayload` respectively ([twilight-rs#902] - [@7596ff]). At least one `Activity` is required when building an `UpdatePresence` payload. `UpdatePresenceError` and `UpdatePresenceErrorType` have been created to validate this ([twilight-rs#891] - [@7596ff]). [twilight-rs#829]: twilight-rs#829 [twilight-rs#832]: twilight-rs#832 [twilight-rs#891]: twilight-rs#891 [twilight-rs#902]: twilight-rs#902 [@7596ff]: https://github.com/7596ff [@vivian]: https://github.com/vivian
embed-builder-0.5.0 This major version bump of the Embed Builder crate is done to match all of the other crates in the ecosystem receiving a major version bump. There are no changes.
PreviousNext