v0.12.1
Thanks to the following for their contributions:
- @arqunis
- @GnomedDev
- @jamesbt365
- @kangalio
- @logand22
- @mkrasnitski
- @SenseiHiraku
- @vaporoxx
- @vidhanio
- @Xaeroxe
- @yanorei32
Notable changes
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.
Why not just update the 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).
Smaller, but still notable changes
- (#2621) Add a temporary cache for messages.
- (#2649) Deprecate
RoleId::to_role_cached
- UseGuild::roles
instead. - (#2726) Pack bitflags - Reduces alignments of
bitflags!
types, resulting in a smaller memory footprint. - (#2696) Support attachments in forum posts.
- (#2560) Add support for monetization apis.
- (#2648) Deprecate inefficient emoji helpers - use the emoji methods on
guildid
/guild
instead.