Update Rust crate serenity to 0.11.5 #17
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.10.8
->0.11.5
Release Notes
serenity-rs/serenity
v0.11.5
Compare Source
Thanks to the following for their contributions:
Notable changes
v0.11.4
Compare Source
Thanks to the following for their contributions:
Notable changes
GuildChannel::message_count
([@anden3])v0.11.3
Compare Source
Thanks to the following for their contributions:
Notable changes
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 andbackports
module ([@GnomedDev])MessageType::AutoModerationAction
enum variant ([@nickelc])CustomisedHelpData
([@mkrasnitski])CacheHttp
forArc<T>
ifT
also implements it ([@mkrasnitski])model::application
types ([@kangalioo])Webhook
to enable direct creation ([@mkrasnitski])interactions
&oauth2
model types into theapplication
module ([@nickelc])model
feature is disabled ([@FallenWarrior2k])v0.11.2
Compare Source
Thanks to the following for their contributions:
Added
Ord
andPartialOrd
forTimestamp
([@tedtramonte]) [c:b1c3a62]audit_log::Action
to represent unknown values ([@nickelc]) [c:b2ae872]SUPPRESS_EMBEDS
flag for interaction response messages ([@nickelc]) [c:888c37f]Guild
toPartialGuild
([@kangalioo]) [c:475fc1f]Changed
clippy::pedantic
lints ([@GnomedDev]) [c:dc22cf2]simd-json
trait imports withjson::prelude::*
([@nickelc]) [c:3e454cc]convert_ws_message
([@MelonShooter]) [c:8b2326c]Cow
inutils/content_safe.rs
to save on allocations ([@mkrasnitski]) [c:79a3cc8]dashmap
5.2.0 for the MSRV build job ([@nickelc]) [c:2898af2]simd-json
to 0.4.14 ([@nickelc]) [c:0ba01a7]AttachmentType::data
inEditRole::icon
([@mkrasnitski]) [c:c3ad0b2].git-blame-ignore-revs
([@nickelc]) [c:75df53e]Fixed
Removed
chrono
dependency in example 09 ([@acdenisSK]) [c:0450dde]v0.11.1
Compare Source
This is a light release to fix compilation on https://docs.rs.
Thanks to the following for their contributions:
Changed
v0.11.0
Compare Source
Thanks to the following for their contributions:
Added
native-tls
backend ([@nickelc]) [c:440f0fa]guild_id
([@nickelc]) [c:4dbf3d0]users
argument toutils::content_safe
([@GnomedDev]) [c:c18e889]image_hash
key ([@nickelc]) [c:985212a].git-blame-ignore-revs
file ([@nickelc]) [c:3a3e399]CreateInteractionResponseData
to set or unset the ephemeral flag ([@pascalharp]) [c:283af98]model::Timestamp
from a UNIX timestamp ([@nickelc]) [c:66f8be7]FAILED_TO_MENTION_SOME_ROLES_IN_THREAD
([@nickelc]) [c:a75ac69]GatewayIntents
([@vaporox]) [c:14fc9c6]GUILD_MESSAGES
intent bitflag ([@Bloectasy]) [c:6f28486]Webhook::get_message
for retrieving messages sent by a webhook ([@GnomedDev]) [c:a2b388f]GenericId
snowflake type for unspecific entities in audit logs ([@nickelc]) [c:146b1ac]Attachment
option type ([@JellyWX]) [c:9866a85]Copy
andClone
traits for the audit action enums ([@nickelc]) [c:dfac5d7]model::Timestamp
([@nickelc]) [c:3aca5ca]Default
trait for all bitflags types ([@nickelc]) [c:92de3da]allowed_mentions
in theExecuteWebhook
builder ([@mkrasnitski]) [c:71583c3]locale
andguild_locale
fields in interactions ([@Rstar284]) [c:b4d0765]data
andfilename
methods toAttachmentType
([@mkrasnitski]) [c:ad9e987]ActivityType
s ([@nickelc]) [c:b4e4add]serde_json
andsimd-json
([@vicky5124]) [c:f61fae4]USE_EXTERNAL_STICKERS
permission and audit log support for stickers ([@drklee3]) [c:1fbf1e9]Request
system ([@drklee3]) [c:57582d2]Http::get_guilds
([@tylerd008]) [c:06d101b]Dispatch
error hook ([@kangalioo]) [c:c2130a8]Interaction
toModalSubmitInteraction
([@gradiuscypher]) [c:e187f73]EventHandler
in anArc
directly to theClient
([@squili]) [c:16c2089]set_components
toEditMessage
([@Chronophylos]) [c:57c0826]message_id
field to audit log options for pinned/unpinned messages ([@nickelc]) [c:3a64da1]add_member
toGuild
andGuildId
([@vaporox]) [c:82c2415]allowed_mentions
inEditMessage
([@acdenisSK]) [c:86dbaee]Changed
str::split_once
for parsing webhooks and user tags ([@mkrasnitski]) [c:fbfe0cf]utils::content_safe
([@mkrasnitski]) [c:32cb31c]misc::Mention{able}
into their ownmodel/mention
module ([@mkrasnitski]) [c:f5458f1]Permissions
([@devtomio]) [c:10410a2]Ratelimiter::new()
([@vaporox]) [c:f4f310d]Http
([@vaporox]) [c:f8bc937]CacheHttp
requirements ([@vaporox]) [c:a36353b]Http::application_id
in ready event handler ([@vaporox]) [c:c5f9cbe]target_id
unconditionally ([@nickelc]) [c:c5dc80b]ResolvedTarget
enum variants ([@nickelc]) [c:404ab03]model::misc
([@mkrasnitski]) [c:5a0e8f4]Guild::member_named
's implementation to useutils::parse_user_tag
([@mkrasnitski]) [c:8c9670f]ArgumentConvert
compatible without thecache
feature ([@kangalioo]) [c:cdaa70c]MESSAGE_CONTENT
intent is now privileged ([@kangalioo]) [c:63a1000]Option
in more places in theClientBuilder
([@vaporox]) [c:8bca94a]unstable_discord_api
feature guard from the application commands ([@nickelc]) [c:1ce8060]Into<Content>
([@mkrasnitski]) [c:c9e4f27]shard_id
methods synchronous ([@nickelc]) [c:787e7d9]ApplicationCommandInteractionDataResolved
([@nickelc]) [c:56cab22]ApplicationFlags
bitflags in the application info structs ([@nickelc]) [c:33d402f]std::fmt
imports andDisplay
&Debug
trait implementations ([@nickelc]) [c:7a8f2cf]parking_lot
to 0.12 ([@xfix]) [c:d5b5970]async-tungstenite
to 0.17 ([@nickelc]) [c:4ff348e]tokio::task::Builder
usage behind a feature flag ([@Milo123459]) [c:9624af0]to_user
andto_channel
functions ([@Milo123459]) [c:1be625b]model::guild::audit_log
module public ([@nickelc]) [c:7d99bcb]AuditLogs
([@nickelc]) [c:7823b6e]utils
module ([@nickelc]) [c:5a4fd2a]Change
struct into an enum with the actual types ([@nickelc]) [c:594a00d]dashmap
to v5.1.0 ([@acdenisSK] [@vicky5124] [@Some-Dood]) [c:6298f67] [c:342fdbb] [c:28e0311]serde
traits for the auditAction
enum directly ([@nickelc]) [c:0f77d31]HttpBuilder
to avoidunwrap
calls ([@vaporox]) [c:89499b2]utils::token
module ([@nickelc]) [c:97ea22f]utils::content_safe
and dependants into its own module ([@nickelc]) [c:ab4e7fe]VoiceState
with helper structs ([@nickelc]) [c:14e747d]Vec
allocation by using the iterators directly ([@nickelc]) [c:4556594]emoij
parameters in component builders toInto<ReactionType>
([@nickelc]) [c:8fe7127]levenshtein
crate ([@nickelc]) [c:5f6ad2a]is_false
function from themodel::utils
module ([@nickelc]) [c:5b43bdb]bitflags!
macro forApplicationFlags
([@nickelc]) [c:dd5661c]DateTime<Utc>
with a newtype structTimestamp
([@nickelc]) [c:1577efc]bitflags!
macro with serde implementation ([@nickelc]) [c:4d5f4f1]nightly
build job ([@nickelc]) [c:fbba88c]Route::stage_instances
to&'static str
([@nickelc]) [c:a3dd38e]api!
macro ([@nickelc]) [c:a95ac81]CacheUpdate
into thecache::event
module ([@nickelc]) [c:afba7f5]bitflags!
macro instead of the undocumented macro ([@nickelc]) [c:701d759]GuildStatus
withUnavailableGuild
in the ready event ([@nickelc]) [c:5063de1]Permissions
without an extraString
allocation ([@nickelc]) [c:f26fb7f]Webhook::edit
into three separate methods ([@mkrasnitski]) [c:1715476]RoleTags
([@nickelc]) [c:363a311]GuildWelcomeScreen
and dependant types into a separate module ([@nickelc]) [c:bc46711]cdn!
macro ([@nickelc]) [c:9a2cce8]DiscordJsonError
([@nickelc]) [c:080f5b0]GatewayIntents
tomodel
([@Gentoli]) [c:f46bbc8]Http
to take&JsonMap
instead ofJsonMap
([@mkrasnitski]) [c:b1389aa]actions-rs
GitHub actions with equivalent commands ([@nickelc]) [c:48de0e5]clippy::unwrap_used
for tests globally ([@nickelc]) [c:f9f6079]Examples
build job by just checking instead of building ([@nickelc]) [c:34881b9]GuildWelcomeChannel
and dependant types ([@nickelc]) [c:dfe38c2]hashmap_to_json_map
function into thejson
module ([@nickelc]) [c:34c484c]Role
creation and update into a helper function ([@nickelc]) [c:25cdfeb]EventHandler
by removing redundantguild_id
parameters ([@nickelc]) [c:a5f9a4f]GuildMembersChunkEvent
struct manually ([@nickelc]) [c:ae93570]User
's discriminator de-/serialization into themodel::user
module ([@nickelc]) [c:178f62c]model::id
module ([@nickelc]) [c:68d5049]match
es where the match expression is a bool to be more idiomatic ([@nickelc]) [c:cb5d090]HashMap
values serialization in the other serde modules ([@nickelc]) [c:5ce8177]#[serde(with = "...")]
([@nickelc]) [c:173c1a6]HttpBuilder
to be synchronous ([@Some-Dood]) [c:fa68bb1]category_id
field of channel types toparent_id
([@AldanTanneo]) [c:cf1a897]ApplicationCommand
message type toChatInputCommand
([@HarmoGlace]) [c:bc9315c]DashMap
in its internals ([@vicky5124]) [c:9e2b9df]Message::channel
([@kangalioo]) [c:c889c7e]Result
s ([@acdenisSK]) [c:a8cd62d]Embed::colour
anOption
([@drklee3]) [c:5223ea0]RichInvite::inviter
optional and replaceInviteUser
withUser
([@acdenisSK]) [c:82e5095]reqwest
v0.11.7 andasync-tungstenite
v0.16 ([@nickelc]) [c:c80084c] [c:d1a3ded] [c:a168913]Fixed
clippy::pedantic
([@nickelc]) [c:f6a3700]unused_imports
warning ([@nickelc]) [c:a9d1919]Publish docs
build job ([@nickelc]) [c:11fff2f]Route::ChannelsIdMessagesId
([@mkrasnitski]) [c:1a9bb54]Change::Type
variant ([@nickelc]) [c:3f93af8]PermissionOverwrite
([@nickelc]) [c:1f13d70]AttachmentType::Image
([@mkrasnitski]) [c:0632019]communication_disabled_until
data in member update & chunk events ([@nickelc]) [c:bb638c0]JOIN_MESSAGES
constant to be up to date ([@acdenisSK]) [c:6219fec]e09_create_message_builder
example when thetime
feature is enabled ([@nickelc]) [c:74f4396]builder,unstable_discord_api
([@Gentoli]) [c:eda64a6]ActivityFlags
([@nickelc]) [c:1725627]MessageFlags
and missing constants ([@nickelc]) [c:1a0cc66]EmojiId
serialization in theReactionType
serialization ([@nickelc]) [c:5114d80]UserId
withApplicationId
([@kangalioo]) [c:4b2c4d9]Integration::synced_at
([@vicky5124]) [c:983d0e4]PresenceUser
'sdiscriminator
field ([@acdenisSK]) [c:584d3a9]EmojiIdentifier
'sFromStr
impl ([@kangalioo]) [c:faebd0c]Message::edit
's lifetimes ([@acdenisSK]) [c:22a3f64]Activity::url
is a valid URL at a type-level ([@hybras]) [c:3f985b5]Presence::user
to properly handle optional fields ([@kangalioo]) [c:a3a861c]codespell
([@acdenisSK]) [c:4eee51c]titel
->title
) ([@acdenisSK]) [c:519ea83]communication_disabled_until
field if cached member exists ([@drklee3]) [c:7a8adfb]Removed
Error::Num
enum variant ([@nickelc]) [c:2596927]ClientBuilder::application_id
field ([@nickelc]) [c:d7ef273]Error::Rustls
enum variant ([@nickelc]) [c:8d3a079]found_group_prefix
parameter ([@vaporox]) [c:e283b51]update_cache_timeout
fromCacheAndHttp
([@vaporox]) [c:c2b9445]*tls_backend_marker
features ([@vaporox]) [c:16661a3]client::Extras
struct ([@nickelc]) [c:1ed7ac5]ApplicationInfo
&BotApplication
structs ([@nickelc]) [c:1e427c6]tokio
0.2 compatibility ([@xfix]) [c:04a57c3]#[doc(cfg(...))]
([@acdenisSK]) [c:602bcb6]model::guild::Target
enum ([@nickelc]) [c:b767215]AuditLogs
([@nickelc]) [c:16dcc69]Error::description
implementation ([@nickelc]) [c:63cdeec]Arc
forreqwest::Client
([@vaporox]) [c:a1cdd7f]Component
enum ([@nickelc]) [c:1e11fb4]arbitrary_precision
feature ([@nickelc]) [c:bc77218]Activity
([@nickelc]) [c:4e7c60a]#[cfg(feature = "utils")]
attributes on model methods ([@nickelc]) [c:0675fd1]NeverFails
error type ([@nickelc]) [c:5774572]ClientBuilder
([@kangalioo]) [c:e6039c4]VoiceRegion::vip
field ([@almeidx]) [c:e748deb]Shard::is_shutdown
([@rasm47]) [c:0ccb793]Box
indirection onframework
. ([@Lakelezz]) [c:2f48379]GuildChannel::send_message
note ([@MathyouMB]) [c:73ff5ba]kankyo::load()
in example 06 ([@ben-brook]) [c:db101fd]v0.10.10
Compare Source
Thanks to the following for their contributions:
Added
timeout
doc alias to various methods ([@Milo123459]) [c:1d05a1e]banner
andaccent_color
fields toUser
([@drklee3]) [c:9e10d54]get_*
methods for manyClientBuilder
fields ([@kangalioo]) [c:90dae53]get_webhook_from_url
([@mkrasnitski]) [c:b026f00] [c:6bd2f74] [c:7b89775]cargo make
to the Running Examples section ([@kafinsalim]) [c:47a297b]min_value
andmax_value
to slash command options ([@kangalioo]) [c:cfd518e]SUPPRESS_JOIN_NOTIFICATION_REPLIES
system channel flag ([@almeidx]) [c:6121fd0]ClientBuilder
for retrieving the current token ([@kangalioo]) [c:6f87d25]poise
to the "Projects extending Serenity" section ([@vicky5124]) [c:bfb5f13]STAGE_INSTANCE
,STICKER
, andTHREAD
([@woongzeyi]) [c:0bc3ce0]defer
helper methods for deferring interactions ([@Milo123459]) [c:d50628e]ApplicationCommand::version
field ([@HarmoGlace]) [c:c85d44a]From<Datetime>
forTimestamp
([@drklee3]) [c:b905554]#[required_permissions(perms)]
requirements ([@woongzeyi]) [c:f9de6c5]set_component
method to respective builders ([@JellyWX]) [c:99eba2b]ContextMenuCommand
message type ([@HarmoGlace]) [c:2a571d3]Changed
model::guild::GuildStatus
enum as deprecated ([@nickelc]) [c:bd1342e]Region
([@nickelc]) [c:2dcb9b3]slow_mode_rate
/rate_limit
methods and field ([@nickelc]) [c:5c1e31e]model::guild::Region
enum as deprecated ([@nickelc]) [c:6d476cf]Attachment
s by callingBytes::to_vec
([@nickelc]) [c:f630f32]write_all
variant in theAttachment::download
example ([@acdenisSK]) [c:a8b4e2f]Formatter::write_str
directly instead ofwriteln
for string literals ([@nickelc]) [c:6a0106c]permissions::PRESET_*
constants ([@nickelc]) [c:fc7c76a]u64
value ofAttachmentId
s public ([@nickelc]) [c:5379d3e]*Id::created_at
method by usingUtc.timestamp_millis
([@nickelc]) [c:1977e9f]rustfmt
edition to match library edition ([@mkrasnitski]) [c:4f2a73b]time
from dependency tree ([@KaDiWa4]) [c:d9c8980]Configuration::prefix
to accept types that implementToString
([@mkrasnitski]) [c:738465f]tokio
module behindtokio*
features ([@nickelc]) [c:921ff6f]ClientBuilder::type_map_insert
in examples where it makes sense ([@nickelc]) [c:c3358cf]tracing_subscriber
initialization in the examples ([@nickelc]) [c:46f7608]tokio::spawn
withspawn_named
([@Milo123459] [@acdenisSK]) [c:5f81d4a] [c:247c073] [c:b2197db]match
with thematches!
macro ([@Milo123459]) [c:6987175]Member
parsing ifUser
is not in the cache inArgumentConvert
([@kangalioo]) [c:6085aad]Sticker::pack_id
as optional ([@Atakku]) [c:cf040cb]MessageComponentInteraction::message
to not be partial ([@HarmoGlace]) [c:f915fee]Fixed
Message::crosspost
([@OverHash]) [c:b180f21]ReactionType
deserialization ([@nickelc]) [c:fe946df]InteractionApplicationCommandDataFlags
([@nickelc]) [c:62b9c84]permissions::PRESET_GENERAL
([@nickelc]) [c:707697e]#[help]
to generate its variables without an extra underscore ([@JohnTheCoolingFan]) [c:df47df1]Permissions
bitflags ([@AldanTanneo]) [c:0acabdf]command_attr
's macros ([@Friz64]) [c:5b7a23c]MessageBuilder
documentation ([@mbenoukaiss]) [c:eb29760]CreateApplicationCommandPermissions
public and fix documentation links ([@squili]) [c:7392f3f]Removed
#[serde(deserialize_with = "..")]
attribute ([@nickelc]) [c:e848af8]#[tokio::test]
from synchronous tests ([@nickelc]) [c:0d1c88e]colour!
macro ([@nickelc]) [c:096d1da]v0.10.9
Compare Source
Thanks to the following for their contributions:
Added
Client
builder. ([@Splingush]) [c:ea8ec29]ApplicationCommandOption
([@Splingush]) [c:312ae16]Event
to get related user, guild, channel, and message IDs ([@sbrocket]) [c:0aa1a6c]PartialEq
,Eq
,PartialOrd
,Ord
, andHash
forUserPublicFlags
([@KangarooCoder]) [c:e7ba5bf]Cache::channel_messages_field
([@kangalioo]) [c:ca02662]Guild::stage_instances
([@HarmoGlace]) [c:13cf056]Http::new_with_token
([@squili]) [c:537753b]Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.