We've published minor versions of a number of crates. This release is composed of bugfixes, new features, performance improvements, documentation improvements, and dependency updates.
Discord's Clyde AI bot has a unique avatar hash. Unlike other hashes that are
hex based, Clyde's avatar hash is simply "clyde". We now handle deserialization
of Clyde's avatar in our
Application command interaction options of type
String are no longer trimmed
of leading zeroes.
UpdateCurrentMember request now correctly removes the current member's
nickname if passed
UpdateGuildSticker request now uses the specified audit log reason;
prior, it was accidentally ignoring the reason.
The allowed version range of
simd-json was broadened to
>=0.4, <0.10 in
twilight-gateway and twilight-http.
Standby now has an example of how to timeout futures and streams.
AutoModerationTriggerMetadata struct now supports the
Permissions bitflag now supports the
USE_SOUNDBOARD variants and renames
Interaction struct now supports the
CommandRatelimiter performance has been improved by over 98%,
with common calls being reduced from around 4 microseconds to around 57
nanoseconds. This is something that can be used by users, and is also used by
shards when sending commands, making common operations just a bit more speedy.
Avatars, banners, icons, and other assets are received as hashes, which we have
ImageHash for as a performance improvement in storage. Instead of storing
hashes as heap-allocated strings, we store them as 16 bytes on the stack. The
performance of the deserialization and parsing of hashes is now 38% faster.