0.5.0
New features:
- Added
Context::parent_commands()
- Added
Context::invocation_string()
- Added
builtins::register_in_guild()
andbuiltins::register_globally()
convenience functions - The return value of autocomplete callbacks can be any serializable type now
Context
can now be passed directly into most serenity API functions- Because it now implements
AsRef<Cache>
,AsRef<Http>
,AsRef<ShardMessenger>
, andCacheHttp
traits
- Because it now implements
- Added
execute_modal()
function with support for modal timeouts
API updates:
Modal::create()
gained acustom_id: String
parameter- To make it possible to tell apart two modal interactions
- Removed
CreateReply::reference_message(MessageReference)
in favor ofCreateReply::reply(bool)
- For the unusual case of setting a different reference message than the invocation (why would you? I'm genuinely interested), you can still convert the
CreateReply
intoserenity::CreateMessage
manually via.to_prefix()
and callserenity::CreateMessage
'sreference_message()
method
- For the unusual case of setting a different reference message than the invocation (why would you? I'm genuinely interested), you can still convert the
- Renamed
FrameworkBuilder::user_data_setup()
method tosetup()
- Renamed
FrameworkOptions::listener
field toevent_handler
- Renamed
Context::discord()
method toserenity_context()
Behavior changes:
register_application_commands_buttons()
now has emojis, reworked wording, and prints the time taken to registerModal::execute()
always responds to the correct modal now- When a subcommand is invoked, all parent commands' checks are run too, now
Detailed changelog: v0.4.1...v0.5.0