NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #3710 most downloaded on crates.io
A Rust library for the Discord API.
Latest stable
0.12.5
Last release 11 months ago
20 Dec 2025
Release timing varies
gaps range from 9 days to 1.1 years
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
10 years old
97 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
This compiles all of the changes that had accumulated since the prior release, and, unless another minor release is warranted, constitutes as the last
This compiles all of the changes that had accumulated since the prior release, and, unless another minor release is warranted, constitutes as the last release for the 0.12.x series.
We also extend our heartfelt thanks to @jamesbt365, who passed away a few months ago. We deeply appreciate his code contributions, which started back in 2023, as well as his social contributions for helping people with using Serenity, Songbird, and Poise, on Github and/or Discord. We were saddened to hear that he's no longer with us, but we hope he rests well.
Thanks to the following for their contributions:
Member::distinctContentSafeOptions::show_discriminatorPURCHASE_NOTIFICATION message typeMessage::message_snapshotsPartialEq and Eq for ActivityData?with_components in webhooksavatar field to PartialMemberImageHash usable as key in std containersbanner to Member and PartialMemberflags to EditWebhookMessage and EditInteractionResponseget_user_voice_state endpointresolved data to ComponentInteractionDataapplied_tags field to ExecuteWebhookattachment_size_limit fieldMessage::super_reactOrd impl for RoleGuild::features documentationGuild::preferred_locale, it is only available to guilds with the COMMUNITY featureYour coding agent can read these notes before it upgrades. Set up the MCP server →
This is a hotfix release to fix broken behaviour of Message::author_permissions before it is relied on.
This is a hotfix release to fix broken behaviour of Message::author_permissions before it is relied on.
Thanks to the following for their contributions:
_in variants.From<&User> has been added to CreateEmbedAuthor, to avoid consuming the user.Message::author_permissions now respects permission overrides, as it is documented to.Message::author_permissions now respects SEND_MESSAGES_IN_THREADS when used in threads.Guild::threads has been expanded.Thanks to the following for their contributions:
Thanks to the following for their contributions:
Message(Id)::link_ensured can be replaced by Message(Id)::link if recieved via event, or MessageId::link if the message was recieved via a HTTP request.CreateInteractionResponse::PremiumRequired has been deprecated and replaced with Premium Buttons.GuildChannel::permissions_for_user has been deprecated, use the new Message::author_permissions helper or Guild::user_permissions_in.CreateButton now implements From<Button>.User::display_name has been added, as users may have two different names now.CurrentApplicationInfo.GuildMemberFlags have been added.USE_EXTERNAL_APPS permission has been added.MessageReferenceKind has been added to start supporting forwarding.{PartialGuild, Guild}::partial_member_permissions has been added for more efficent permissions checkingunstable_discord_api.Message::author_permissions helper has been added, alongside Permissions::dm_permissions.unstable_discord_api-1 no longer fail to deserialise.GuildId::members_iter documentation.CreateAttachment documentation has been updated to be more consistent with other builders.CreateEmbedAuthor documentation can now spell embed correctly.AuthorizingIntegrationOwners is now usable, as the field was previously private.Partial)Guild::member_permissions is now usable without cache.ChannelId::delete_messages documentation has been expanded to document the single item case.BulkBanResponse have been made public.bulk_ban endpoint is now usable, previously unusable due to Send issues.Continuing with the deprecations started in 0.12.1, many more methods and fields have been deprecated in order to make an easier upgrade path to 0.13.
Thanks to the following for their contributions:
Continuing with the deprecations started in 0.12.1, many more methods and fields have been deprecated in order to make an easier upgrade path to 0.13.
These deprecation messages include a migration path, it is recommended to go one by one using cargo check and migrate each warning to reduce the burden migrating to 0.13. Following is a list of the deprecation PRs and the justification for these changes.
Channel::is_nsfw method was wrong, useless, and served better by GuildChannel::nsfwMember::highest_role_info is now strictly less powerful than the new Guild::member_highest_role and can avoid a cache lookup if used correctly.Guild::is_large is less accurate than Guild::largeMessage::is_own is super simple to implement yourselfMessage::is_private simply checks if Message::guild_id is none.Event::PresencesReplace does not exist, and is a relic from when serenity supported user accounts.TeamMember::permissions is always ["*"], so is useless.CreateMessage::enforce_nonce, to prevent sending duplicate messages.EditProfile::banner, allowing banners to be set for bots.ChannelId::get_thread_member.Guild::partial_member_permissions_in, which can be used to avoid fetching a Member in message events just to check permissions.From<User> for CreateEmbedAuthor, setting the author name and icon to the User's info.UserId::direct_message, so you don't need a full User to direct message.Http::default_allowed_mentions to set the AllowedMentions to be used with every request.Guild(Id)::bulk_ban, allowing bulk banning without hitting rate limits.In this release, the standard framework has been deprecated (#2733).
Thanks to the following for their contributions:
In this release, the standard framework has been deprecated (#2733).
As Discord continues to endorse and evolve application commands (/... commands, user commands, message commands, etc.), the standard framework becomes increasingly outdated. Bots are also steadily losing (and already have lost) access to contents of messages, making it difficult to build a prefix-only bot. Unless you plan on restricting your bot to only accept commands in DMs, allowing its presence in only fewer than 100 guilds, or presenting a reasonable justification to Discord for permission to continue using message contents, you should migrate to application commands. We recommend poise, which supports writing both prefix and application commands with a #[command] macro like the standard framework.
Poise already exists and is better than the standard framework. Efforts should be directed at improving poise instead. To support application commands would require an overhaul of the standard framework, as they are special (for instance, Discord parses arguments on behalf of the bot and passes them as structured data, whereas for prefix commands, the bot must parse by itself).
RoleId::to_role_cached - Use Guild::roles instead.bitflags! types, resulting in a smaller memory footprint.guildid/guild instead.This release turned out to be one of serenity's largest ever, with well over 300 PRs in total! It contains quite a few major breaking changes to the A…
This release turned out to be one of serenity's largest ever, with well over 300 PRs in total! It contains quite a few major breaking changes to the API. Therefore, the changelog for this release also serves as a migration guide for users upgrading from the 0.11 series.
Thanks to the following for their contributions:
The closure-based API for constructing requests using the builder pattern has been ripped out and replaced. In place of closures, users must now pass in builder types directly. For example, in serenity 0.11, code like the following was very common:
let channel = guild
.create_channel(&http, |c| c.name("my-test-channel").kind(ChannelType::Text))
.await?;
Now, users instead write the following code:
let builder = CreateChannel::new("my-test-channel").kind(ChannelType::Text);
let channel = guild.create_channel(&http, builder).await?;
Or, inline like so:
let channel = guild
.create_channel(&http, CreateChannel::new("my-test-channel").kind(ChannelType::Text))
.await?;
Note that in this particular example, the channel name is now a mandatory field that must be passed in when constructing the builder. Mutating the builder with subsequent calls to CreateChannel::name will change the underlying value. Additionally, all methods on builders now take mut self and return Self, instead of taking and returning &mut self/&mut Self. This allows for explicit construction as in the second example above. Also, builders no longer wrap a pub HashMap<&'static str, T>; the hashmap has been flattened into concrete private fields.
Some benefits to this new approach to builders are:
AttachmentType enum has been replaced with a CreateAttachment builder struct. This struct has the file, path, and url constructors that eagerly evaluate the data passed to them - CreateAttachment simply stores the resulting raw data. This is in contrast to AttachmentType which lazily carried filepaths/urls with it, and had data and filename methods for resolving them. Additionally, the CreateAttachment::to_base64 method can be used to manually encode an attachment if needed.EditAttachments builder struct has been added for use with the attachments method on the EditMessage, EditWebhookMessage, and EditInteractionResponse builders. This new builder provides finer control when editing a message's existing attachments or uploading additional ones. Also, the following methods have been renamed to more accurately reflect their behavior:| serenity v0.11 | serenity v0.12 |
|---|---|
EditMessage::attachment |
EditMessage::new_attachment |
EditMessage::add_existing_attachment |
EditMessage::keep_existing_attachment |
EditWebhookMessage::clear_existing_attachments |
EditWebhookMessage::clear_attachments |
EditInteractionResponse::clear_existing_attachments |
EditInteractionResponse::clear_attachments |
Collectors have been redesigned and simplified at no cost to expressibility. There is now a generic collector::collect function which takes a closure as argument, letting you filter events as they stream in.
ComponentInteractionCollector, ModalInteractionCollector, MessageCollector, and ReactionCollector) are simply convenience structs that wrap this underlying function.EventCollector is now deprecated, as its use usually involved anti-patterns around fallibility. However, its functionality can still be replicated using collector::collect. See example 10 for more details.RelatedId and RelatedIdsForEventType types have been removed as they were only used by EventCollector. Methods for retrieving them from events have also been removed; if users wish to extract "related" ids from an event, they should do so directly from the event's fields. The removed methods are the following:
Event::user_idEvent::guild_idEvent::channel_idEvent::message_idEventType::related_idsIn an effort to shorten long names and make import paths less unwieldy, Serenity now uses command instead of application_command in all places, except for the Permissions::USE_APPLICATION_COMMANDS constant. This includes methods on the Http, GuildId, Guild, PartialGuild, and Command types, as well as a few other miscellaneous places:
| serenity v0.11 | serenity v0.12 |
|---|---|
Http::*_{global,guild}_application_command* |
Http::*_{global,guild}_command* |
{GuildId,Guild,PartialGuild}::*_application_command* |
{GuildId,Guild,PartialGuild}::*_command* |
Command::*_global_application_command* |
Command::*_global_command* |
Interaction::application_command |
Interaction::command |
EventHandler::application_command_permissions_update |
EventHandler::command_permissions_update |
Route::ApplicationCommand* |
Route::Command* |
Permissions::use_application_commands |
Permissions::use_commands |
Additionally, the following command types have been renamed:
| serenity v0.11 | serenity v0.12 |
|---|---|
CreateApplicationCommand |
CreateCommand |
CreateApplicationCommandOption |
CreateCommandOption |
CreateApplicationCommandPermissionData |
CreateCommandPermission |
CreateApplicationCommandPermissionsData |
EditCommandPermissions |
CommandPermission |
CommandPermissions |
CommandPermissionData |
CommandPermission |
Furthermore, the methods on CreateCommandPermission, such as new, kind, etc. have been replaced with constructors for each type of permission, e.g. role, user, channel, etc., to avoid a possible mismatch between kind and the id that gets passed in.
Finally, the {GuildId,Guild,PartialGuild}::create_command_permission method has been renamed to edit_command_permission to more accurately reflect its behavior.
CacheRef type that wraps a reference into the cache. Other methods that returned a map, now return a wrapper type around a reference to the map, with a limited API to prevent accidental deadlocks. This all helps reduce the number of clones when querying the cache. Those wishing to replicate the old behavior can simply call .clone() on the return type to obtain the wrapped data.CacheSettings has new fields time_to_live, cache_guilds, cache_channels, and cache_users, allowing cache configuration on systems with memory requirements; whereas previously, memory-constrained systems were forced to disable caching altogether.PrivateChannels (aka DM channels) has been removed, as they are never sent across the gateway by Discord. Therefore, the Cache::{private_channel, private_channels} methods have been removed, and Cache::guild_channel has been renamed to just Cache::channel. Additionally, some uses of the Channel enum in return types have been replaced with either GuildChannel or PrivateChannel as seen fit.All *Id types have had their internal representations made private. Therefore, the API has changed as follows:
| serenity v0.11 | serenity v0.12 |
|---|---|
ExampleId(12345) |
ExampleId::new(12345) |
example_id.as_u64() |
example_id.get() |
Note that all *Id types now implement Into<u64> and Into<i64>. Additionally, attempting to instantiate an id with a value of 0 will panic.
Also, the implementations of FromStr for the UserId, RoleId, and ChannelId types now expect an integer rather than a mention string. The following table shows the new expected input strings:
| serenity v0.11 | serenity v0.12 | |
|---|---|---|
ChannelId |
<#81384788765712384> |
81384788765712384 |
RoleId |
<@&136107769680887808> |
136107769680887808 |
UserId |
<@114941315417899012> or <@!114941315417899012> |
114941315417899012 |
Users wishing to parse mentions should either parse into a Mention object, or use the utils::{parse_user_mention, parse_role_mention, parse_channel_mention} methods.
The various interaction types have been renamed as follows:
| serenity v0.11 | serenity v0.12 |
|---|---|
ApplicationCommandInteraction |
CommandInteraction |
MessageComponentInteraction |
ComponentInteraction |
ModalSubmitInteraction |
ModalInteraction |
Method names on interaction types have been shortened in the following way:
| serenity v0.11 | serenity v0.12 |
|---|---|
create_interaction_response |
create_response |
create_followup_message |
create_followup |
delete_original_interaction_response |
delete_response |
delete_followup_message |
delete_followup |
edit_original_interaction_response |
edit_response |
edit_followup_message |
edit_followup |
get_interaction_response |
get_response |
get_followup_message |
get_followup |
AutocompleteInteraction has been merged into CommandInteraction, along with its corresponding methods.kind field has been removed from each of the interaction structs.quick_modal method has been added to CommandInteraction and ComponentInteraction. See the docs for more details.The standard framework is now configurable at runtime, as the configure method now takes self by reference. In line with the builder changes, the Configuration and BucketBuilder builders are no longer closure-based and must be passed in directly. Also, the Framework trait has been reworked to accomodate more use cases than just text commands:
dispatch method now takes a FullEvent as argument instead of just a Message. This enum contains all the data that is passed to the EventHandler.init method has been added, that allows for more complex framework initialization, which can include executing HTTP requests, or accessing cache or shard data.As a result, the trait now accomodates alternative frameworks more easily, such as poise.
WsStream to WsClient.ShardManagerMonitor and ShardManagerMessage types have been removed. Their functionality has been replicated via methods directly on ShardManager. Any fields with type Sender<ShardManagerMessage>, as well as the Client::shard_manager field, have had their types changed to Arc<ShardManager>. The new methods on ShardManager are the following:
return_with_valueshutdown_finishedrestart_shardupdate_shard_latency_and_stageShardClientMessage and InterMessage enums were deemed redundant wrappers around ShardRunnerMessage and removed - users should use ShardRunnerMessage directly instead.ShardManagerError type is removed in favor of GatewayError.Shard::heartbeat_instants. Users should instead use the last_heartbeat_{sent,ack} methods, which now return Option<Instant> instead of Option<&Instant>.Shard::heartbeat_interval to return Option<Duration> instead of Option<u64>.Shard::check_heartbeat to do_heartbeat.ShardMessenger::new now takes &ShardRunner as argument instead of Sender<ShardRunnerMessage>.ShardRunnerMessage::AddCollector variant in favor of the ShardMessenger::add_collector method. This method adds the collectors immediately, whereas ShardRunnerMessage is polled periodically in a loop - this could occasionally cause collectors to drop the first event they received.serenity::client::bridge::{gateway,voice}::* have been moved into serenity::gateway. They are now gated behind the gateway feature instead of the client feature, however most users use these features in conjunction, and so should not see a change in required-enabled features.Serenity now uses Rust edition 2021, with an MSRV of Rust 1.74.
thread_id parameter to Http::{get,edit,delete}_webhook_message, Http::execute_webhook}, as well as Webhook::{get,delete}_message.audit_log_reason parameter to many Http methods and builder structs.EventHandler::shards_ready method.Default for many model types.button and select_menu methods to the following builders:
CreateInteractionResponseMessageCreateInteractionResponseFollowupEditInteractionResponseCreateMessageEditMessageEditWebhookMessageExecuteWebhookChannelId::create_forum_post and GuildChannel::create_forum_post.event_handler and raw_event_handler fields with pluralized event_handlers and raw_event_handlers in the following structs:
ShardManagerOptionsShardQueuerShardRunnerShardRunnerOptionsClientBuilderReactionRemoveEmoji and GuildAuditLogEntryCreate.serenity::all module, which re-exports most public items in the crate.CreateButton::custom_id method.{GuildId, Guild, PartialGuild}::edit_mfa_level.EditWebhookMessage endpoint by adding a new_attachments parameter to Http::edit_webhook_message, as well as the following methods to the EditWebhookMessage builder:
attachmentadd_existing_attachmentremove_existing_attachmentUser::global_name field, and by making discriminators on usernames optional and non-zero. In particular, the PresenceUser::discriminator and User::discriminator fields are now of type Option<NonZeroU16>.{GuildId,Guild,PartialGuild}::current_user_member method.User::static_face method, mirroring User::face.VOICE_CHANNEL_STATUS_UPDATE gateway event.GuildId::everyone_role method.CREATE_EVENTS and CREATE_GUILD_EXPRESSIONS permissions, and rename MANAGE_EMOJIS_AND_STICKERS to MANAGE_GUILD_EXPRESSIONS (the old name is still present but deprecated).FormattedTimestamp utility struct for representing a combination of a timestamp and a formatting style.utils::argument_convert::parse_message_url.Hash to Timestamp's derive list.typesize support.From<Into<String>> for AutocompleteChoice.Request::body_ref now returns Option<&T> instead of &Option<&T>.Typing::stop now returns bool instead of Option<()>. Also, Typing::start and any wrapper methods are now infallible.async:
ChannelId::nameContext::*Guild::{members_starting_with, members_containing, members_username_containing, members_nick_containing}Guild::default_channelPartialGuild::greater_member_hierarchyShardManager::newUserId::to_user_cachedError::Http variant.Guild::member to return Cow<'_, Member> instead of just Member.ShardManagerOptions to be owned (Arc is cheap to clone).u8.RequestBuilder::body from Option<&[u8]> to Option<Vec<u8>>.MessageInteraction non-exhaustive, and add a member field.Permissions::USE_SLASH_COMMANDS to USE_APPLICATION_COMMANDS.constants::OpCode to Opcode, and the same for voice_model::OpCode.ShardInfo for tracking Shard ids, and change ids from u64 to u32.Message::nonce field to a custom Nonce enum instead of a serde_json::Value.MembershipState, ScheduledEventStatus, and ScheduledEventType non-exhaustive.MessageActivityKind variants to use CamelCase instead of ALL_CAPS.CurrentPresence with a PresenceData struct.ActivityData in place of Activity for setting the current presence.set_activity methods to take an Option<ActivityData> to allow for clearing the current presence by passing in None.ClientBuilder, and adding an optional presence parameter to Shard::new.Unknown variants on enums are now changed to Unknown(u8). Also, the num method for those enums is removed; users should call u8::from instead.Member::edit to edit in place, and return Result<()> instead of Result<Message>.u32, u64, or NonZeroU64.{GuildId, Guild, PartialGuild}::delete to return Result<()>.impl From<String> for Timestamp with impl TryFrom<&str>.const:
LightMethod::reqwest_methodRatelimit::{limit, remaining, reset, reset_after}RequestBuilder::newChannel::{id, position, name}Error::is_cache_errEvent::event_typeEventType::nameGatewayIntents::*Permissions::*CommonFilterOptions::{filter_limit, collect_limit} fields from u32 to NonZeroU32.GuildChannel::message_count field from Option<u8> to Option<u32>.serenity::utils::colour module into serenity::model.CreateAllowedMentions::parse with all_users, all_roles, and everyone methods.ChannelId::name to return Result<String> instead of Option<String>.EventHandler methods if the cache feature is disabled. Relevant cache-dependant data is now passed in using Option.u32.Future for ClientBuilder with IntoFuture.ClientBuilder::{get_token, get_type_map, get_cache_settings} infallible.CacheUpdate::Output for ChannelDeleteEvent from () to Vec<Message>.Box:
CommandInteraction::memberComponentInteraction::messageModalInteraction::messageMessage::memberMessage::interactionCreateSelectMenuKind and ComponentInteractionDataKind enums to better enforce well-formation of requests.http module by re-exporting all types found in submodules at the top level and removinng access to the submodules themselves.ErrorResponse non-exhaustive, change the url field from Url to String, and add a method field.Http::ratelimiter field in Option, and remove the corresponding ratelimiter_disabled field.reason parameter to Http::{ban, kick}, and remove Http::{ban,kick}_with_reason.Route and RouteInfo enums, and add method and params fields to the Request struct.model::application module in the same way the http module was flattened.ThreadMembersUpdateEvent::member_count field from u8 to i16.GuildUpdateEvent::guild from PartialGuild to GuildReaction::member from Option<PartialMember> to MemberIntegration::guild_id from GuildId to Option<GuildId>IncidentUpdate::status from IncidentStatus to String (IncidentStatus is also removed){Guild,PartialGuild}::premium_subscription_count from u64 to Option<u64>InputText::value from String to Option<String>CurrentApplicationInfo::owner from User to Option<User>ScheduledEventMetadata::location from String to Option<String>Trigger::KeywordPreset from a tuple variant to a struct variantIncident::short_link to shortlinkThreadDeleteEvent::channels_id to channel_idsThreadMembersUpdateEvent::removed_members_ids to removed_member_idsInviteTargetType::EmmbeddedApplication to EmbeddedApplicationScope::RelactionshipsRead to RelationshipsReadCurrentUser to be a newtype around User, implement the Deref trait, and remove the guilds, invite_url, and invite_url_with_oauth2_scopes methods. The only method now unique to CurrentUser is edit. All other methods are available to call via deref coercion.model types non-exhaustive:
model::application::{Interaction, ActionRow, Button, SelectMenu, SelectMenuOption, InputText}model::application::{PartialCurrentApplicationInfo, Team, TeamMember, InstallParams}model::channel::{PartialGuildChannel, ChannelMention}model::gateway::{ActivityEmoji, ClientStatus}model::guild::{Ban, GuildPrune, GuildInfo, UnavailableGuild, GuildWelcomeScreen}model::guild::{ScheduledEventMetadata, ScheduledEventUser}model::guild::automod::{Rule, TriggerMetadata, Action, ActionExecution}model::misc::EmojiIdentifierCacheUpdate::Output for ChannelUpdateEvent from () to Channel. Also, make {Guild,PartialGuild}::user_permissions_in infallible and change Error::InvalidPermissions into a struct variant containing both the the required permissions as well as the present permissions.secrecy::SecretString to prevent them being leaked through Debug implementations, and so that they are zeroed when dropped.Strings to a dedicated ImageHash type which saves on space by storing the hash directly as bytes.rate_limit_per_user fields are now counted using a u16.position fields now hold a u16.positition fields now hold a u16.auto_archive_position fields are now an enum AutoArchivePosition.afk_timeout fields are now an enum AfkTimeout.DefaultReaction struct with a ForumEmoji enum.Sticker::sort_value field is now an Option<u16>.min_values and max_values fields for Select Menus now hold a u8.max_age invite field now holds a u32.max_uses invite field now holds a u8.ActivityParty current and maximum size are now of type u32.Ready::version field is now a u8.min_length and max_length fields for Input Text components now hold a u16.mention_total_limit field for automod triggers now holds a u8.RoleSubscriptionData::total_months_subscribed field is now a u16.{Http,ChannelId,GuildChannel}::create_public_thread to create_thread_from_message, and similarly rename create_private_thread to create_thread, to more accurately reflect their behavior. The corresponding endpoints have also been renamed from ChannelPublicThreads/ChannelPrivateThreads, to ChannelMessageThreads/ChannelThreads, respectively.ThreadDelete event now provides the full GuildChannel object for the deleted thread if it is present in the cache.ThreadUpdate event now provides the old thread's GuildChannel object if it is present in the cache.Webhook::source_guild and Webhook::source_channel fields have had their types changed from Option<PartialGuild>/Option<PartialChannel> to their own Option<WebhookGuild>/Option<WebhookChannel> types in order to avoid deserialization errors. These new types contain very few fields, but have methods for converting into PartialGuilds or Channels by querying the API.json::prelude module with public wrapper functions that abstract over both serde_json and simd-json.GatewayIntents::GUILD_BANS to GUILD_MODERATION (the old name is still present but is deprecated).CreateInteractionResponseMessage::flags to take InteractionResponseFlags instead of MessageFlags.ThreadMember into PartialThreadMember.GuildId::audit_logs.Guild::members_with_status to return impl Iterator<Item = &Member> instead of Vec<Member>.model::application::ResolvedTarget.model::guild::GuildContainer.EventHandler::{guild_unavailable, unknown}.EditProfile::{email, password, new_password}.serenity::json::from_number. Users should call .into() instead.Channel::Category variant, as GuildChannel::kind can already be ChannelType::Category. However, the Channel::category method is still available.Mention::Emoji variant.serenity::token::parse - use token::validate instead.absolute_ratelimits feature and replace it with a runtime configuration option.CacheAndHttp, and inline it as separate cache and http fields in the following structs:
ShardManagerOptionsShardQueuerShardRunnerShardRunnerOptionsClientVoiceServerUpdateEvent::channel_idResumedEvent::channel_idReady::{presences, private_channels, trace}InviteGuild::{text_channel_count, voice_channel_count}VoiceState::tokenIncidentUpdate::affected_components (and also the AffectedComponent struct)Maintenance::{description, stop, start}SelectMenu::valuesMessageUpdateEvent::{author, timestamp, nonce, kind, stickers}PartialGuild::{owner, permissions}InviteTargetType::NormalTrigger::HarmfulLinkFromStrAndCache and StrExt traits. Also removes model::{ChannelParseError,RoleParseError}, which conflicted with types of the same name from utils.model from the model::prelude, and don't re-export types from other libraries, like Deserialize or HashMap.DefaultAvatar enum.PartialOrd/Ord:
EventType enum. Instead of Event::event_type().name(), users should just call Event::name.PingInteraction::guild_locale field.This is the second iteration of 0.12's Release Candidate. Notable inclusions since the prior iteration are:
This is the second iteration of 0.12's Release Candidate. Notable inclusions since the prior iteration are:
Event::Unknown wrap UnknownEvent againtypesize supportThis is the Release Candidate for v0.12.0. For the list of changes made (which there are a ton), see the CHANGELOG file at the root of the repository.
This is the Release Candidate for v0.12.0. For the list of changes made (which there are a ton), see the CHANGELOG file at the root of the repository.
Thanks to the following for their contributions:
Thanks to the following for their contributions:
MessageComponentInteraction::edit_original_message() for editing the original message of the message component.std::str::FromStr for the ID types to allow converting from a string. This does not affect the pre-existing implementation on ChannelId, RoleId, and UserId.set_components() methods on EditInteractionResponse and EditWebhookMessagedelete_reaction and delete_reactions methods for deleting reactions to ChannelId, GuildChannel, and Message.base64 dependency to 0.21(#2077) Deprecate modifying command application permissions in bulk. The corresponding endpoint is already deprecated by Discord.
Special thanks to @mkrasnitski for writing this changelog :heart:
Thanks to the following for their contributions:
Timestamp usable regardless of the chrono or time features.BucketBuilder::await_ratelimits to 1 upon BucketBuilder::delay_action being set.EventHandler::ratelimit method.MessageUpdateEvent:
mention_channelsreactionscomponentssticker_itemsShard::handle_event publicly.User::member, as well as Message:{thread, application_id} fields.defer_ephemeral helper method to many interaction types.as_* and into_* helper methods to the Interaction type for converting to each of its respective variants.UserPublicFlags::ACTIVE_DEVELOPER flag.flagstotal_messages_sentavailable_tagsapplied_tagsdefault_reaction_emojidefault_thread_rate_limit_per_userdefault_sort_orderowner_id in thread and forum channels.SUPPRESS_NOTIFICATIONS message flag.Http::get_{guild,global}_application_commands_with_localizationsCommand::get_global_application_commands_with_localizations{GuildId,Guild,PartialGuild}::get_application_commands_with_localizationsremove_all_attachments method to EditMessage.Thanks to the following for their contributions:
Thanks to the following for their contributions:
Thanks to the following for their contributions:
Thanks to the following for their contributions:
Thanks to the following for their contributions:
GuildChannel::message_count in a non-breaking way (@GnomedDev)Auto Moderation feature (@nickelc)app_permissions field on interactions (@nickelc)Invite::expires_at field (@mkrasnitski)discriminator" serde error for presence updates (@nickelc)rustversion dependency and backports module (@GnomedDev)MessageType::AutoModerationAction enum variant (@nickelc)CustomisedHelpData (@mkrasnitski)CacheHttp for Arc<T> if T also implements it (@mkrasnitski)model::application types (@kangalioo)Webhook to enable direct creation (@mkrasnitski)interactions & oauth2 model types into the application module (@nickelc)model feature is disabled (@FallenWarrior2k)Thanks to the following for their contributions:
Thanks to the following for their contributions:
Ord and PartialOrd for Timestamp (@tedtramonte) c:b1c3a62audit_log::Action to represent unknown values (@nickelc) c:b2ae872SUPPRESS_EMBEDS flag for interaction response messages (@nickelc) c:888c37fGuild to PartialGuild (@kangalioo) c:475fc1fclippy::pedantic lints (@GnomedDev) c:dc22cf2simd-json trait imports with json::prelude::* (@nickelc) c:3e454ccconvert_ws_message (@MelonShooter) c:8b2326cCow in utils/content_safe.rs to save on allocations (@mkrasnitski) c:79a3cc8dashmap 5.2.0 for the MSRV build job (@nickelc) c:2898af2simd-json to 0.4.14 (@nickelc) c:0ba01a7AttachmentType::data in EditRole::icon (@mkrasnitski) c:c3ad0b2.git-blame-ignore-revs (@nickelc) c:75df53eThis is a light release to fix compilation on https://docs.rs.
This is a light release to fix compilation on https://docs.rs.
Thanks to the following for their contributions:
[misc] Remove deprecated Error::description implementation ([@nickelc]) [c:63cdeec]
Thanks to the following for their contributions:
native-tls backend (@nickelc) c:440f0faguild_id (@nickelc) c:4dbf3d0users argument to utils::content_safe (@GnomedDev) c:c18e889image_hash key (@nickelc) c:985212a.git-blame-ignore-revs file (@nickelc) c:3a3e399CreateInteractionResponseData to set or unset the ephemeral flag (@pascalharp) c:283af98model::Timestamp from a UNIX timestamp (@nickelc) c:66f8be7FAILED_TO_MENTION_SOME_ROLES_IN_THREAD (@nickelc) c:a75ac69GatewayIntents (@vaporox) c:14fc9c6GUILD_MESSAGES intent bitflag (@Bloectasy) c:6f28486Webhook::get_message for retrieving messages sent by a webhook (@GnomedDev) c:a2b388fGenericId snowflake type for unspecific entities in audit logs (@nickelc) c:146b1acAttachment option type (@JellyWX) c:9866a85Copy and Clone traits for the audit action enums (@nickelc) c:dfac5d7model::Timestamp (@nickelc) c:3aca5caDefault trait for all bitflags types (@nickelc) c:92de3daallowed_mentions in the ExecuteWebhook builder (@mkrasnitski) c:71583c3locale and guild_locale fields in interactions (@Rstar284) c:b4d0765data and filename methods to AttachmentType (@mkrasnitski) c:ad9e987ActivityTypes (@nickelc) c:b4e4addserde_json and simd-json (@vicky5124) c:f61fae4USE_EXTERNAL_STICKERS permission and audit log support for stickers (@drklee3) c:1fbf1e9Request system (@drklee3) c:57582d2Http::get_guilds (@tylerd008) c:06d101bDispatch error hook (@kangalioo) c:c2130a8Interaction to ModalSubmitInteraction (@gradiuscypher) c:e187f73EventHandler in an Arc directly to the Client (@squili) c:16c2089set_components to EditMessage (@Chronophylos) c:57c0826message_id field to audit log options for pinned/unpinned messages (@nickelc) c:3a64da1add_member to Guild and GuildId (@vaporox) c:82c2415allowed_mentions in EditMessage (@acdenisSK) c:86dbaeestr::split_once for parsing webhooks and user tags (@mkrasnitski) c:fbfe0cfutils::content_safe (@mkrasnitski) c:32cb31cmisc::Mention{able} into their own model/mention module (@mkrasnitski) c:f5458f1Permissions (@devtomio) c:10410a2Ratelimiter::new() (@vaporox) c:f4f310dHttp (@vaporox) c:f8bc937CacheHttp requirements (@vaporox) c:a36353bHttp::application_id in ready event handler (@vaporox) c:c5f9cbetarget_id unconditionally (@nickelc) c:c5dc80bResolvedTarget enum variants (@nickelc) c:404ab03model::misc (@mkrasnitski) c:5a0e8f4Guild::member_named's implementation to use utils::parse_user_tag (@mkrasnitski) c:8c9670fArgumentConvert compatible without the cache feature (@kangalioo) c:cdaa70cMESSAGE_CONTENT intent is now privileged (@kangalioo) c:63a1000Option in more places in the ClientBuilder (@vaporox) c:8bca94aunstable_discord_api feature guard from the application commands (@nickelc) c:1ce8060Into<Content> (@mkrasnitski) c:c9e4f27shard_id methods synchronous (@nickelc) c:787e7d9ApplicationCommandInteractionDataResolved (@nickelc) c:56cab22ApplicationFlags bitflags in the application info structs (@nickelc) c:33d402fstd::fmt imports and Display & Debug trait implementations (@nickelc) c:7a8f2cfparking_lot to 0.12 (@xfix) c:d5b5970async-tungstenite to 0.17 (@nickelc) c:4ff348etokio::task::Builder usage behind a feature flag (@Milo123459) c:9624af0to_user and to_channel functions (@Milo123459) c:1be625bmodel::guild::audit_log module public (@nickelc) c:7d99bcbAuditLogs (@nickelc) c:7823b6eutils module (@nickelc) c:5a4fd2aChange struct into an enum with the actual types (@nickelc) c:594a00ddashmap to v5.1.0 (@acdenisSK @vicky5124 @Some-Dood) c:6298f67 c:342fdbb c:28e0311serde traits for the audit Action enum directly (@nickelc) c:0f77d31HttpBuilder to avoid unwrap calls (@vaporox) c:89499b2utils::token module (@nickelc) c:97ea22futils::content_safe and dependants into its own module (@nickelc) c:ab4e7feVoiceState with helper structs (@nickelc) c:14e747dVec allocation by using the iterators directly (@nickelc) c:4556594emoij parameters in component builders to Into<ReactionType> (@nickelc) c:8fe7127levenshtein crate (@nickelc) c:5f6ad2ais_false function from the model::utils module (@nickelc) c:5b43bdbbitflags! macro for ApplicationFlags (@nickelc) c:dd5661cDateTime<Utc> with a newtype struct Timestamp (@nickelc) c:1577efcbitflags! macro with serde implementation (@nickelc) c:4d5f4f1nightly build job (@nickelc) c:fbba88cRoute::stage_instances to &'static str (@nickelc) c:a3dd38eapi! macro (@nickelc) c:a95ac81CacheUpdate into the cache::event module (@nickelc) c:afba7f5bitflags! macro instead of the undocumented macro (@nickelc) c:701d759GuildStatus with UnavailableGuild in the ready event (@nickelc) c:5063de1Permissions without an extra String allocation (@nickelc) c:f26fb7fWebhook::edit into three separate methods (@mkrasnitski) c:1715476RoleTags (@nickelc) c:363a311GuildWelcomeScreen and dependant types into a separate module (@nickelc) c:bc46711cdn! macro (@nickelc) c:9a2cce8DiscordJsonError (@nickelc) c:080f5b0GatewayIntents to model (@Gentoli) c:f46bbc8Http to take &JsonMap instead of JsonMap (@mkrasnitski) c:b1389aaactions-rs GitHub actions with equivalent commands (@nickelc) c:48de0e5clippy::unwrap_used for tests globally (@nickelc) c:f9f6079Examples build job by just checking instead of building (@nickelc) c:34881b9GuildWelcomeChannel and dependant types (@nickelc) c:dfe38c2hashmap_to_json_map function into the json module (@nickelc) c:34c484cRole creation and update into a helper function (@nickelc) c:25cdfebEventHandler by removing redundant guild_id parameters (@nickelc) c:a5f9a4fGuildMembersChunkEvent struct manually (@nickelc) c:ae93570User's discriminator de-/serialization into the model::user module (@nickelc) c:178f62cmodel::id module (@nickelc) c:68d5049matches where the match expression is a bool to be more idiomatic (@nickelc) c:cb5d090HashMap values serialization in the other serde modules (@nickelc) c:5ce8177#[serde(with = "...")] (@nickelc) c:173c1a6HttpBuilder to be synchronous (@Some-Dood) c:fa68bb1category_id field of channel types to parent_id (@AldanTanneo) c:cf1a897ApplicationCommand message type to ChatInputCommand (@HarmoGlace) c:bc9315cDashMap in its internals (@vicky5124) c:9e2b9dfMessage::channel (@kangalioo) c:c889c7eResults (@acdenisSK) c:a8cd62dEmbed::colour an Option (@drklee3) c:5223ea0RichInvite::inviter optional and replace InviteUser with User (@acdenisSK) c:82e5095reqwest v0.11.7 and async-tungstenite v0.16 (@nickelc) c:c80084c c:d1a3ded c:a168913clippy::pedantic (@nickelc) c:f6a3700unused_imports warning (@nickelc) c:a9d1919Publish docs build job (@nickelc) c:11fff2fRoute::ChannelsIdMessagesId (@mkrasnitski) c:1a9bb54Change::Type variant (@nickelc) c:3f93af8PermissionOverwrite (@nickelc) c:1f13d70AttachmentType::Image (@mkrasnitski) c:0632019communication_disabled_until data in member update & chunk events (@nickelc) c:bb638c0JOIN_MESSAGES constant to be up to date (@acdenisSK) c:6219fece09_create_message_builder example when the time feature is enabled (@nickelc) c:74f4396builder,unstable_discord_api (@Gentoli) c:eda64a6ActivityFlags (@nickelc) c:1725627MessageFlags and missing constants (@nickelc) c:1a0cc66EmojiId serialization in the ReactionType serialization (@nickelc) c:5114d80UserId with ApplicationId (@kangalioo) c:4b2c4d9Integration::synced_at (@vicky5124) c:983d0e4PresenceUser's discriminator field (@acdenisSK) c:584d3a9EmojiIdentifier's FromStr impl (@kangalioo) c:faebd0cMessage::edit's lifetimes (@acdenisSK) c:22a3f64Activity::url is a valid URL at a type-level (@hybras) c:3f985b5Presence::user to properly handle optional fields (@kangalioo) c:a3a861ccodespell (@acdenisSK) c:4eee51ctitel -> title) (@acdenisSK) c:519ea83communication_disabled_until field if cached member exists (@drklee3) c:7a8adfbError::Num enum variant (@nickelc) c:2596927ClientBuilder::application_id field (@nickelc) c:d7ef273Error::Rustls enum variant (@nickelc) c:8d3a079found_group_prefix parameter (@vaporox) c:e283b51update_cache_timeout from CacheAndHttp (@vaporox) c:c2b9445*tls_backend_marker features (@vaporox) c:16661a3client::Extras struct (@nickelc) c:1ed7ac5ApplicationInfo & BotApplication structs (@nickelc) c:1e427c6tokio 0.2 compatibility (@xfix) c:04a57c3#[doc(cfg(...))] (@acdenisSK) c:602bcb6model::guild::Target enum (@nickelc) c:b767215AuditLogs (@nickelc) c:16dcc69Error::description implementation (@nickelc) c:63cdeecArc for reqwest::Client (@vaporox) c:a1cdd7fComponent enum (@nickelc) c:1e11fb4arbitrary_precision feature (@nickelc) c:bc77218Activity (@nickelc) c:4e7c60a#[cfg(feature = "utils")] attributes on model methods (@nickelc) c:0675fd1NeverFails error type (@nickelc) c:5774572ClientBuilder (@kangalioo) c:e6039c4VoiceRegion::vip field (@almeidx) c:e748debShard::is_shutdown (@rasm47) c:0ccb793Box indirection on framework. (@Lakelezz) c:2f48379GuildChannel::send_message note (@MathyouMB) c:73ff5bakankyo::load() in example 06 (@ben-brook) c:db101fd[model] Mark the model::GuildStatus enum as deprecated ([@nickelc]) [c:bd1342e]
Thanks to the following for their contributions:
timeout doc alias to various methods (@Milo123459) c:1d05a1ebanner and accent_color fields to User (@drklee3) c:9e10d54get_* methods for many ClientBuilder fields (@kangalioo) c:90dae53get_webhook_from_url (@mkrasnitski) c:b026f00 c:6bd2f74 c:7b89775cargo make to the Running Examples section (@kafinsalim) c:47a297bmin_value and max_value to slash command options (@kangalioo) c:cfd518eSUPPRESS_JOIN_NOTIFICATION_REPLIES system channel flag (@almeidx) c:6121fd0ClientBuilder for retrieving the current token (@kangalioo) c:6f87d25poise to the "Projects extending Serenity" section (@vicky5124) c:bfb5f13STAGE_INSTANCE, STICKER, and THREAD (@woongzeyi) c:0bc3ce0defer helper methods for deferring interactions (@Milo123459) c:d50628eApplicationCommand::version field (@HarmoGlace) c:c85d44aFrom<Datetime> for Timestamp (@drklee3) c:b905554#[required_permissions(perms)] requirements (@woongzeyi) c:f9de6c5set_component method to respective builders (@JellyWX) c:99eba2bContextMenuCommand message type (@HarmoGlace) c:2a571d3model::guild::GuildStatus enum as deprecated (@nickelc) c:bd1342eRegion (@nickelc) c:2dcb9b3slow_mode_rate/rate_limit methods and field (@nickelc) c:5c1e31emodel::guild::Region enum as deprecated (@nickelc) c:6d476cfAttachments by calling Bytes::to_vec (@nickelc) c:f630f32write_all variant in the Attachment::download example (@acdenisSK) c:a8b4e2fFormatter::write_str directly instead of writeln for string literals (@nickelc) c:6a0106cpermissions::PRESET_* constants (@nickelc) c:fc7c76au64 value of AttachmentIds public (@nickelc) c:5379d3e*Id::created_at method by using Utc.timestamp_millis (@nickelc) c:1977e9frustfmt edition to match library edition (@mkrasnitski) c:4f2a73btime from dependency tree (@KaDiWa4) c:d9c8980Configuration::prefix to accept types that implement ToString (@mkrasnitski) c:738465ftokio module behind tokio* features (@nickelc) c:921ff6fClientBuilder::type_map_insert in examples where it makes sense (@nickelc) c:c3358cftracing_subscriber initialization in the examples (@nickelc) c:46f7608tokio::spawn with spawn_named (@Milo123459 @acdenisSK) c:5f81d4a c:247c073 c:b2197dbmatch with the matches! macro (@Milo123459) c:6987175Member parsing if User is not in the cache in ArgumentConvert (@kangalioo) c:6085aadSticker::pack_id as optional (@Atakku) c:cf040cbMessageComponentInteraction::message to not be partial (@HarmoGlace) c:f915feeMessage::crosspost (@OverHash) c:b180f21ReactionType deserialization (@nickelc) c:fe946dfInteractionApplicationCommandDataFlags (@nickelc) c:62b9c84permissions::PRESET_GENERAL (@nickelc) c:707697e#[help] to generate its variables without an extra underscore (@JohnTheCoolingFan) c:df47df1Permissions bitflags (@AldanTanneo) c:0acabdfcommand_attr's macros (@Friz64) c:5b7a23cMessageBuilder documentation (@mbenoukaiss) c:eb29760CreateApplicationCommandPermissions public and fix documentation links (@Squili) c:7392f3fThanks to the following for their contributions:
Thanks to the following for their contributions:
Client builder. (@Splingush) c:ea8ec29ApplicationCommandOption (@Splingush) c:312ae16Event to get related user, guild, channel, and message IDs (@sbrocket) c:0aa1a6cPartialEq, Eq, PartialOrd, Ord, and Hash for UserPublicFlags (@KangarooCoder) c:e7ba5bfCache::channel_messages_field (@kangalioo) c:ca02662Guild::stage_instances (@HarmoGlace) c:13cf056Http::new_with_token (@squili) c:537753bParse trait and add support for most applicable model types (@kangalioo) c:eb14984http::Error's Display implementation (@kangalioo) c:ce97f9eMessage builders (@kangalioo) c:0be7d1aInteraction::user field (@HarmoGlace) c:9d18334GuildChannel::send_message work in threads (@kangalioo) c:fb203aeGuildChannel collector functionality (@kotx) c:413e3efMessageUpdateEvent (@sbrocket) c:6192107false to EditMessage::suppress_embeds (@sbrocket) c:47b9afbcliend_id typo (@vicky5124) c:5cb9cb9Interaction's Option fields if they are None (@sbrocket) c:c21f052parse_token (@adumbidiot) c:3fba372CreateSelectMenuOption's description method (@HarmoGlace) c:cb30408This is a release primarily to publish support for slash command buttons and dropdowns, but includes improvements and fixes for other things. For inst
This is a release primarily to publish support for slash command buttons and dropdowns, but includes improvements and fixes for other things. For instance:
CacheHttp implementation for Http.Guild and PartialGuild by implementing missing methods.Message::reply (and Message::reply_ping).Thanks to the following for their contributions:
CacheHttp for Http (@acdenisSK) c:5c9c194Activity buttons (@HarmoGlace) c:2635f7bset_embed to EditMessage (@Gabriel-Paulucci) c:073c22froles method on GuildId for retrieving the guild's roles (@JellyWX) c:38a39f5validate_token checks (@kangalioo) c:132fd68application_id of Http when creating a Client (@drklee3) c:1744883Message::reply(_ping) (@kangalioo) c:22d2276DiscordJsonError messages (@HarmoGlace) c:97c01eecreate_webhook_with_avatar (@JellyWX) c:d390ca1This is an amendment release to revert a breaking change that was overlooked when releasing 0.10.6. The removed-then-reverted code no longer works bec…
This is an amendment release to revert a breaking change that was overlooked when releasing 0.10.6. The removed-then-reverted code no longer works because of a breaking change by Discord themselves in version 8 of their API, but regardless, minor versions (y in 0.x.y) cannot include breaking changes for parts of Serenity's stable API. To prevent users from depending on 0.10.6, it has been yanked from https://crates.io.
Thanks to the following for their contributions:
Deprecation of the region field for the Guild and PartialGuild structures. The region is now set per voice channel.
This release adds a plethora of additions and changes (and a few bugfixes), mainly improving conformity to Discord's API. Speaking of which, special thanks goes to @HarmoGlace, who, with his hard work, generously added and improved support to features of the Discord API such as Slash Commands and other things.
Among the most important highlights of this release are:
region field for the Guild and PartialGuild structures. The region is now set per voice channel.Unknown variant whenever Discord adds a type/kind. This prevents runtime errors resulting from deserialisation of model types due to unrecognised types/kinds.#[command], #[help], and #[check] functions. With a little hint, the compiler should report more detailed and accurate error messages for the return type of the functions.serenity::http::DiscordJsonError.Thanks to the following for their contributions:
Team::name field (@HarmoGlace) c:07f15adMemberUpdate event (@nitsuga5124) c:3a6eb58content_type field to Attachment (@nitsuga5124) c:1b17732CreateEmbed::timestamp (@legendofmiracles) c:d0b404dPermissions instead of String for the PartialMember::permissions field (@HarmoGlace) c:3b662e0Unknown variant for new model types (@acdenisSK) c:cdbd14bbefore for accuracy in the framework example (@sudomann) c:392a534Message::mention_channels with constraints (@zacck) c:8ab0800guild_id (@HarmoGlace) c:01f70dbDiscordJsonError::errors field if present (@HarmoGlace) c:bab4d78(Partial)Guild::region (@acdenisSK) c:b995482dead_code lint for ClientBuilder::token (@acdenisSK) c:8e13e74ActivityType's documentation (@Sei4or) c:dca5c45mut modifiers in builder code (@acdenisSK) c:9334af5Thanks to the following for their contributions:
Thanks to the following for their contributions:
GuildChannel::{rtc_region, video_quality_mode} fields (@drklee3) c:95c2f78#[doc] comments using \$ (@acdenisSK) c:dbc40cb c:cc184a4User::public_flags field (@miqbalrr @acdenisSK) c:b999f46 c:8ab0305Parse trait for some model types (@kangalioo) c:3088652#[hook] macro (@acdenisSK) c:412f5a9EditGuild to match current Discord API (@Lakelezz) c:feda47ccollector feature (@acdenisSK) c:a04291fSuggestions::{as_vec, join} methods public (@Daggy1234) c:4186996Activity constructor methods to use ToString (@acdenisSK) c:859355cMember (@acdenisSK) c:909bf8e#[doc] attributes (@acdenisSK) c:166c248allow_dm is false (@acdenisSK) c:16e7556Thanks to the following for their contributions:
Thanks to the following for their contributions:
#[doc(cfg)] (@acdenisSK) c:b192609Thanks to the following for their contributions:
Thanks to the following for their contributions:
#[doc] attributes to #[description] for groups (@acdenisSK) c:1cbc935MessageType (@merlleu) c:8f38985 c:e5ae947#[lacking_conditions] and #[wrong_channel] (@aria-7553) c:8931c4cMember model (@acdenisSK) c:810b033unwrap() (@Th3-M4jor) c:3f93c87Guild, GuildId, PartialGuild, and Interaction (@Th3-M4jor) c:abfbb9fHttp when building the Client (@acdenisSK) c:0e2b648similar_commands (@Lakelezz) c:5892db2cache feature for MembersIter and GuildId::members_iter (@AriusX7) c:4ed30c3tracing 0.1.23 (@nickelc) c:2a21347embeds field in MessageUpdateEvent back to Embed (@cab404) c:8133a43log feature for tracing (@DrBluefall) c:73e6d8aShardManagerContainer in the e06_sample_bot_structure example public (@Daggy1234) c:dfd0b32msg parameter when creating a tracing span (@acdenisSK) c:cb6b528token and add field kind to Webhook (@acdenisSK) c:de72951Available segment in help if empty. (@Lakelezz) c:6b6e5feNotAuthor (@Lakelezz) c:1ab52a0MessageCollector (@s0lst1ce) c:291e4f2Client::data's documentation (@aria-7553) c:2be89e2Configuration::no_dm_prefix's documentation (@aria-7553) c:4477690tracing (@acdenisSK) c:10de463WebSocketGatewayClientExt::send_chunk_guild to not get disconnected by Discord's gateway (@lapin-b) c:2f835a3WebSocketGatewayClientExt::send_resume (@Prof-Bloodstone) c:2854e6be05_command_framework example (@dapper-gh) c:e59314eThanks to the following for their contributions:
Thanks to the following for their contributions:
[misc] Remove #[deprecated] items. ([@Lakelezz]) [c:aca54ac]
Thanks to the following for their contributions:
unstable_discord_api feature (@acdenisSK) c:0b1fc27RateLimitInfo (@Lakelezz) c:aed3886Display and Error traits for the check Reason (@peppizza) c:2c9c64fMessage (@Lakelezz) c:35c8f7bguild_id, member, and self_video fields to VoiceState model (@sam-kirby) c:7034564EventType and conversion methods between Event (@casey) c:f3e4a6bMentionable to return a struct that implements Display (@Wolvereness) c:2624170User::nick_in in Message::author_nick's documentation (@Wolvereness) c:51dc943Emoji methods to require Cache and Http. (@Lakelezz) c:6aa2841CheckResult with a simple Result<(), Reason> (@Lakelezz) c:6e39727u64 to usize to represent overflow in a message (@SadiinsoSnowfall) c:b7b0318ShardManagerContainer type in example 6 public (@Daggy1234) c:59e09d0#[doc] attribute on VerificationLevel to doc comments (@nickelc) c:2b1e2fcReactionCollector (@Th3-M4jor) c:7684323ChannelId::messages_iter (@acdenisSK) c:03a1f97ApplicationId instead of u64 in MessageApplication (#1158) (@sam-kirby) c:66e7addEmojiIdentifier (@AgathaSorceress) c:e8ae00fPermissionOverwrites (@acdenisSK) c:8fb18e6Permission deserialisation (@FelixMcFelix) c:b1bcc67#[deprecated] items. (@Lakelezz) c:aca54acextern crate in command_attr (@acdenisSK) c:d6984a8command_attr (@acdenisSK) c:4729f26_nonexhausive fields (@KamranMackey) c:ac66a54Thanks to the following for their contributions:
Thanks to the following for their contributions:
command_attr version to 0.3.2 (@acdenisSK) c:b03df91Thanks to the following for their contributions:
Thanks to the following for their contributions:
set_time by default. (@Lakelezz) c:5399d44MessageTooLong error (@SadiinsoSnowfall) c:8b42790Thanks to the following for their contributions:
Thanks to the following for their contributions:
Member::add_roles (@acdenisSK) c:e6fd09bThanks to the following for their contributions:
Thanks to the following for their contributions:
#[doc] attribute on VerificationLevel to doc comments (@nickelc) c:58e3d49Thanks to the following for their contributions:
Thanks to the following for their contributions:
Thanks to the following for their contributions:
Thanks to the following for their contributions:
[misc] Fix all clippy warnings and deprecate Client::new ([@ikkerens]) [c:ffc2997]
Thanks to the following for their contributions:
GuildMembersChunkEvent and add nonce to ShardMessenger::chunk_guilds (@TheElec) c:8c30b40create_invite on ChannelId (@acdenisSK) c:c0c2137Clone for CacheAndHttp (@acdenisSK) c:2b66828if let Err with ? in example 5 (@peppizza) c:b1187cewriteln! macro instead of write! in example 5 (@peppizza) c:c6150aesuper::super with absolute imports (@nickelc) c:47e2f34TypeMap to its crate (@nickelc) c:519b67etokio/process and tokio/udp to the voice feature (@nickelc) c:d514806base64 and typemap_rev dependencies to their latest versions (@Qeenon) c:ebd1241GUILD_DELETE event (@acdenisSK) c:b044b6dClient::new (@ikkerens) c:ffc2997ReactionType's Display impl to support animated emojis (@u5surf) c:f0a3947Option from Message::channel_mentions (@nitsuga5124) c:626bdfdThanks to the following for their contributions:
Thanks to the following for their contributions:
create_webhook methods to GuildChannel. (@nitsuga5124) c:fb44a15should_fail_common check earlier (@acdenisSK) c:bab4b24#[non_exhaustive] where applicable (@LikeLakers2) c:9ee42f1parse_emoji accept animated emojis (@bdashore3) c:66e05eaThanks to the following for their contributions:
Thanks to the following for their contributions:
MessagesIter and messages_iter (#942) (@AriusX7) c:a7e2f74Display for Permissions (#939) (@AriusX7) c:1eb2714Group checks when displaying commands in help (#946) (@AriusX7) c:f00f1c0Message::reply (#943) (@Qeenon) c:13bf356It has long been .awaited for, but it's finally here! Serenity now leverages async functions, thanks to the tokio runtime.
It has long been .awaited for, but it's finally here! Serenity now leverages async functions, thanks to the tokio runtime.
A big thanks goes to @Lakelezz. Without the dedication to her efforts, it wouldn't have been possible to make the switch easily.
As that is a huge change, among other changes, this is actually a testing release. It is encouraged to consumers of this release to provide feedback for any warts you might encounter, be it missing features, or bugs. One important bug is the OOM bug. After a period of time has passed since the bot connected, there might be a big random spike in memory usage, prompting the OOM killer to shutdown the bot's process. It is unknown where the spike comes from, or when exactly does it occur. It doesn't happen to every bot either. If you find your bot suddenly using a lot of memory, or being killed, please let us know by opening an Issue.
Thanks to the following for their contributions:
nick field to PartialMember (@asherkin) c:28f9f8amentions_current_user helper (@mysteriouspants) c:e049bc1nonce field to GuildMembersChunk and the event handler (@mjsir911) c:614f99aself_stream field to VoiceState (@DimiDimit) c:c60f397GuildId::name() (@tverghis) c:d99bee9typemap_rev (@bdashore3) c:c1c7300Message::reply take a content implementing std::fmt::Display (@nitsuga5124) c:00683efOption<Message> in help command functions (@MaxOhn) c:4472decMessage::react return its Reaction (@NieDzejkob) c:e7eb52dCommandError with an alias to Box<dyn Error> (@acdenisSK) c:a406d48&mut Context with &Context (@Th3-M4jor) c:3e4294bunrecognised_command() not working if the last added group has prefixes (@nitsuga5124) c:8040fa5 c:760ed71 c:21a5d8eU: Into<UserId> type parameter for partial_guild::edit_member() (@nitsuga5124) c:4227a52Thanks to the following for their contributions:
Thanks to the following for their contributions:
MessageTooLong error (@SadiinsoSnowfall) c:bb04fadThanks to the following for their contributions:
Thanks to the following for their contributions:
This is a small release to publish a bunch of fixes the current branch has accumulated.
This is a small release to publish a bunch of fixes the current branch has accumulated.
Thanks to the following for their contributions:
xsalsa20poly1305 crate for encryption in voice (@tarcieri) c:3965e00Message::content_safe (@ks129) c:46db84aUser::nick_in unconditionally returning if the cache is passed (@acdenisSK) c:9c198ed.mute(...) not preventing the bot from sending frames. (@FelixMcFelix) c:638780eMessage::guild_id field in the Message::guild method (@SOF3) c:84b04bapermissions_for_role and permissions_for_user (@7596ff) c:9356a5cThis release prevents a loop when requesting a restart of a Shard, resulting in the Shard hanging forever.
The last bugfix release was ironically broken because of a slight oversight. This release fixes that.
This release fixes Serenity's handling of Discord's new rebalances. You should no longer encounter many Ready events.
Another bugfix release. This time it fixes a panic that would occur when using a string delimiter and messages contained a unicode character after the
Another bugfix release. This time it fixes a panic that would occur when using a string delimiter and messages contained a unicode character after the delimiter.
Thanks to the following for their contributions:
This is a release for a critical bugfix. In an attempt to fix one thing, other things broke. Any time Serenity made a request to a POST or PUT endpoin
This is a release for a critical bugfix. In an attempt to fix one thing, other things broke. Any time Serenity made a request to a POST or PUT endpoint (such as creating reactions or banning users), Discord would return HTTP 400. This release corrects that.
Thanks to the following for their contributions:
[all] Remove usage of deprecated std::Error functions ([@acdenisSK]) [c:ec306ee]
This is the last release for the 0.8.x series. 0.9.x will contain async/await support!
It is mostly comprised of bugfixes and quality of life changes.
While this is a minor release, a change that is technically breaking has been included. Some MessageBuilder methods were forgotten about when changing builders to mutably borrow in 0.8.0. This release fixes that.
Thanks to the following for their contributions:
[model] Add guild_id into the Reaction model struct (@Elinvynia) c:820d50e
[model] Add missing guild_id to various events (@NovusTheory) c:3ca41fd
[model] Add support for client statuses (@KamranMackey) c:5f9a27a
[http] make error module public (@vivianhellyer) c:d2b19a2
[builder] Reexport Timestamp from the builder's module. (@acdenisSK) c:3a313c8
[model] Implement various kick_with_reason() methods (@nitsuga5124) c:5b0e9f3
[framework] If finding the argument fails, return to the original position (@acdenisSK) c:e005ef1
[framework] Display groups without commands in help. (@Lakelezz) c:d6b0038
[model] Make Member::distinct() show the discriminator as a 4-digit number (@natsukagami) c:a23acc7
[utils] &mut self instead of mut self for MessageBuilder methods (@MaxOhn) c:91f10dd
[utils] Implement Color type alias to Colour (@Elinvynia) c:c3d5264
[http] Only set the content type header if there's a body (@acdenisSK) c:d851fea
[framework] Store command names in lowercase when case-insensitivity is on (@acdenisSK) c:8bba7b0
[misc] Fix release dates (@bikeshedder) c:f27c7c1
[framework/docs] Fill in the missing attribute options (@acdenisSK) c:683ff27
[http/docs] Fix link to the fire method (@acdenisSK) c:1361b33
[framework] Fix strikethrough options refusing to accept name = value syntax (@acdenisSK) c:581eb2f
[framework/docs] Fix a broken link in docs (@Elinvynia) c:48c4b59
[misc] Fix a typo in the message builder example (@TitusEntertainment) c:f2d0ad5
[framework] Fix check_in_help being unaccounted for (@acdenisSK) c:a692bcd
[http] Support image URLs in add_file (@Elinvynia) c:61bcfbc
[http] Add impls for borrowed Arcs to CacheHttp (@acdenisSK) c:4b67d8e
std::error::Error functions (@acdenisSK) c:ec306eeThe next major release of Serenity, coupled with improvements, bugfixes and some breaking changes.
The next major release of Serenity, coupled with improvements, bugfixes and some breaking changes.
group! is now #[group]To stay consistent with the #[command], #[help] and #[check] macros,
the function-like group! procedural macro has also joined in to
the squad of the attribute procedural macros.
Thanks to the following for their contributions:
CacheRwLock in CacheAndHttp (@Lakelezz) c:28a91c6owner_privilege option (@acdenisSK) c:d4b45f4AttachmentType to use Cows instead (@ikkerens) c:b5deb39check macro (@acdenisSK) c:0b3ad00Event enum as untagged (serde) ([@CarlGroth oth]) c:173f7faGuild::edit_role_position example (@LeSeulArtichaut) c:346a7feutils feature without the model feature (@Erk-) c:487fa04Arc implementation for Framework (@acdenisSK) c:05044b6This release prevents a loop when requesting a restart of a Shard, resulting in the Shard hanging forever.
The last bugfix release was ironically broken because of a slight oversight. This release fixes that.
This release fixes Serenity's handling of Discord's new rebalances. You should no longer encounter many Ready events.
An emergency release to fix build breakage due to violation of SemVer for the command_attr crate.
An emergency release to fix build breakage due to violation of SemVer for the command_attr crate.
Thanks to the following for their contributions:
Thanks to the following for their contributions:
Small release including fixes for Discord API changes. Please note with this version the minimum supported version of Rust is 1.37.
Small release including fixes for Discord API changes. Please note with this version the minimum supported version of Rust is 1.37.
Thanks to the following for their contributions:
publicise the iterator (@acdenisSK) 1924946Small release including fixes for Discord API changes. Please note with this version the minimum supported version of Rust is 1.37.
Thanks to the following for their contributions:
publicise the iterator ([@acdenisSK]) [c:1924946]A tiny release for a fix to voice
A tiny release for a fix to voice
Thanks to the following for their contributions:
ClientVoiceManager::remove to actually call Manager::remove (@MOZGIII) c:2734e27It seems Discord has a thing against library developers. They disabled the account of a discord.js developer because they were allegedly "underage" (b
It seems Discord has a thing against library developers. They disabled the account of a discord.js developer because they were allegedly "underage" (below 13 years old). There were credit card transactions to defend their innocence, but Discord argued that they need a photo of their face to properly verify their age, a request the developer declined to comply. Consequently, they chose to no longer be on Discord.
Recently, they did the same thing to @Lakelezz, a huge contributor to Serenity. However, this time they did not state their exact reason, simply saying "in violation of the ToS". Just like the JS developer, she decided to stop affiliating herself with the platform, if this is how it presents its "gratitude" towards her. But also, to cease development of the library.
And thus, on her behalf, I, the main lead developer @acdenisSK, announce her retirement of the project.
Thanks to the following for their contributions:
preferred_locale field (@Erk-) c:2d3e585need. (@Lakelezz) c:65837f5parse_invite (@ikkerens) c:01837141.37.0. (@Lakelezz) c:de9e8a6has_role returning an incorrect result if the member is not cached (@ikkerens) c:96b49f9An emergency release to fix a conflict in our `ring` dependency that prevents compilation if you pull in an older and newer version at the same time.
Thanks to the following for their contributions:
Thanks to the following for their contributions:
Members in a Guild (@Alch-Emi) c:aa1070dMessageBuilder (@AregevDev) c:720d9adShardMessenger::chunk_guilds in Guild's member field (@Alch-Emi) c:8e926f9StandardFramework (@Jerald) c:3a4e2edRoles in GuildChannels (@Lakelezz) c:09c1e01webpki and webpki-roots to the rustls_backend-feature (@leo-lb) c:2439275Thanks to the following for their contributions:
Thanks to the following for their contributions:
&str-parametres to impl AsRef<str> (@xacrimon) c:abd84c2voice::Audio's documentation with play_only (@Mendess2526) c:e6c5d41MessageBuilder::push_spoiler_* consistent with the other push_ functions (@hyarsan) c:d2df2b9Reason's doc-link by using enum (@Lakelezz) c:a8f0387create_invite's doc-example (@Lakelezz) c:45d44cbhelp_commands's module example (@acdenisSK) c:8cdfd7cA small release to address a severe deserialisation bug.
A small release to address a severe deserialisation bug.
Thanks to the following for their contributions:
Thanks to the following for their contributions:
Thanks to the following for their contributions:
remains, an optional alternative to rest (@hyarsan) c:3e15bb8members to encompass the Option (@zeyla) c:3a72058say taking self to &self (@zeyla) c:e5081dbcommand_attr documentation using #[sub] instead of #[sub_commands] (@rsaihe) c:7a0d169set_remove with hint to the #[check] (@Lakelezz) c:1527838Thanks to the following for their contributions:
One column per quarter.