Context menus and switch to PyNacl for interaction server
Pre-releaseBreaking Changes
-
Running the standard interaction server implementation now requires a
hikari[server]
install.This matches a switch over to PyNacl for the cryptographic payload validation. (#986)
Deprecation
-
Deprecated
RESTClient.command_builder
andRESTClient.create_application_command
.You should switch to
RESTClient.slash_command_builder
andRESTClient.create_slash_command
respectively. (#924)
Features
-
Add context menu commands and command autocomplete. (#924)
-
Added support for GET /users/@me/guilds/{guild}/member. (#955)
-
Add the
SUPPRESS_USER_JOIN_REPLIES
system channel flag. (#957) -
Add new message content intent related application flags. (#958)
-
Add the
BOT_HTTP_INTERACTIONS
user flag. (#959) -
Add new presence activity flags. (#960)
-
Add URL methods and properties for rich presence assets. (#961)
-
Add
locale
andguild_locale
properties to interactions. (#962) -
Add ability to send attachments in an interaction initial response. (#971)
-
Add
display_avatar_url
property tohikari.Member
andhikari.User
. (#975) -
old_x keyword arguments in the event factory now default to
None
. (#984) -
Strip tokens in the standard bot impls and RESTApp.
This helps avoids a common mistake with trailing new-lines which leads to confusing errors on request. (#989)
Bugfixes
- Relaxed typing of methods with union entry specific specialisations through overloads. (#876)
- Fix deprecation warnings raised by usage of
asyncio.gather
outside of an active event loop inGatewayBot.run
. (#954) - UTF-8 characters are now properly handled for audit-log reasons in REST requests. (#963)
- Fix magic methods for
UserImpl
and its subclasses. (#982)