Changelog¶
This page keeps a detailed human friendly rendering of what’s new and changed in specific versions.
v0.2.4¶
New Features¶
Add a
message
attribute to the interaction subclasses for typing.- Add new attributes to some of the raw classes:
discord.RawReactionClearEmoji.cached_message
[commands] Add
commands.ApplicationCommandMeta.guild_ids
.[vbu] Add
cookie_encryption_key
to bot config.[vbu] Add parameters to
vbu.checks.bot_is_ready()
.[vbu] Add
vbu.Bot.log_command()
function.[vbu] Add
vbu.checks.interaction_filter()
function.
Removed Features¶
[vbu] Remove
Bot.get_invite_link
.[vbu] Remove
oauth
from the config.
v0.2.1¶
New Features¶
[vbu] Add
i18n()
wrapper.
v0.2.0¶
This version includes breaking changes around things that are cached/retrieved from cache in regards to slash commands, interactions, and HTTP only clients.
This version also includes Intents.message_content
explicitly.
New Features¶
Add
Member.role_ids
.Add support for
gateway_resume_url
.[vbu] Add
vbu.component_id_check()
.[vbu] Add
vbu.Bot.is_interactions_only
.
Changed Features¶
Interaction.guild
can now be an instance ofObject
.Member.guild
will return an empty list if the guild is aObject
.
Use
Member.role_ids
instead.
[commands]
commands.bot_has_permissions()
will now useInteraction.app_permissions
if available.
* [vbu] Owners will only get DMs for uncaught errors if the shard count is lower than 50.
* [vbu] vbu.Bot.startup()
will now be run when the interactions webserver is started.
* [vbu] default_prefix
can now be missing entirely from the config.
Removed Features¶
[vbu] Removed
vbu.command
,vbu.Command
,vbu.group
, andvbu.Group
.[vbu] Remove
vbu.Redis.lock_manager
andaioredlock
requirement.
v0.1.4¶
New Features¶
[vbu] Add
shard
command to owner only cog.[vbu] Add
ext.vbu.Bot.cluster
.[vbu] Add cluster and shard IDs to the statsd logger.
Changed Features¶
[vbu]
ev
command runs invoked via theredis
command will no longer try and add a reaction.[vbu] The statsd logger for guild count now runs per cluster for more accurate guild count measurement.
Bugs Fixed¶
Fixed not supporting
None
command prefixes.Fix
InteractionResolved.channels
not parsing properly.Fix channel kwarg not being optional for
discord.GuildChannel
.[vbu] Fix package data in the setup files.
v0.1.3¶
New Features¶
Add
Locale
.
Bugs Fixed¶
Fixed an error in select menus merged in from the testing branch.
v0.1.2¶
The only change for this release (and .0 and .1) is that VoxelBotUtils is now native to this package. You can install with pip install novus[vbu]
.
v0.0.8¶
New Features¶
Add
check_scopes
parameter toext.commands.is_slash_command()
.Add support for
ForumChannel
.Add support for
ui.UserSelectMenu
,ui.RoleSelectMenu
,ui.MentionableSelectMenu
, andui.ChannelSelectMenu
.Add support for text in voice (voice channels are now sendable).
Add support for NSFW VCs.
Bugs Fixed¶
Fix default permissions in application command meta.
Fix error in context commands that didn’t allow for unions.
v0.0.7¶
New Features¶
- Add support for attachment slash options.
Changed Features¶
Many options from slash commands are now gathered from the resolved data.
Change reprs for components.
Bugs Fixed¶
Fix Bot.get_slash_context() for subcommands without options.
Fix member converter.
Fix permissions checks for interactions.
Add localisations to the json output for application command options.
v0.0.6¶
New Features¶
Add
guild_locale
,user_locale
, andlocale
toInteraction
and the two context objects.Add
ApplicationCommand.default_member_permissions
andApplicationCommand.dm_permissions
.- Add new methods for dealing with application commands.
Add
InteractedComponent.get_component()
- Add support for guild scheduled events.
- Add
commands.Command.application_command_meta()
. This contains meta info for the command that should be converted to slash commands.
- Add
Add support for
ui.Modal`s and :class:`ui.InputText
components.Add
ApplicationCommandOption.max_value
andApplicationCommandOption.min_value
.
Changed Features¶
Change all args in
ApplicationCommandOptionChoice
,ApplicationCommandOption
, andApplicationCommand
’s inits to be kwargs instead of positional args.
Bugs Fixed¶
Fix
moderate_members
not being included inPermissions.all
.Fix positional arguments not being passed properly to commands when invoked via slash command.
Removed Features¶
Removed
Command.add_slash_command
attr and kwarg. This has been replcaed bycommands.Command.application_command_meta
.
v0.0.5¶
New Features¶
Added support for
modals
.- Add support for role icons.
Add
Role.icon
.Add
Role.unicode_emoji
.Add
icon
toRole.edit()
.
- Add support for member timeouts.
Add
communication_disabled_until
toMember.edit()
.
Changed Features¶
Autocomplete is now documented.
Changed the types of
Interaction.values
andInteraction.options
.Change error for
ui.Button
invalid type toInvalidArgument
.
Bugs Fixed¶
Fixed typing of
Member.move_to()
.Add proper exports for
discord.ui
.
v0.0.4¶
New Features¶
Add
files
parameter toInteractionResponse.send()
.- Add support for autocomplete.
Add
Interaction.options
.Add
on_autocomplete_interaction()
andcommands.Bot.on_autocomplete()
events.
Add
ignore_spaces
kwarg toBot.get_command
.Add
MessageComponents.add_number_buttons()
.Add
Button.confirm()
andButton.cancel()
.Add
options
kwarg to ApplicationCommand.Add
@is_slash_command
check.
Changed Features¶
Change default response type to nothing.
Bugs Fixed¶
Fix adding slash commands which we say not to add.
Fix component deferring.
Fix popping non-existent keys.
Re-add options to ApplicationCommandOption export.
Fix reccursion error in interactionresolved.
v0.0.3¶
Bugs Fixed¶
Fix indentation on getting application command arg type.
Fix application command
required
property not being set properly.Add import for application commands to
discord
top-level package.Filter context menu commands out of the default help menu implementation.
Changed Features¶
Removed Danny’s
on_socket_event_type
to be replaced withon_socket_event()
.The
newcog
cmd argument will now use VoxelBotUtils if it’s installed.A list of
commands.Command
objects are now allowed to be passed intoext.commands.Bot.register_application_commands()
.
New Features¶
Add
InteractionResolved
class, as a new attribute inInteraction
.Added
commands.context_command()
decorator.Added
utils.naive_dt()
.Add
WelcomeScreen
.
v0.0.2¶
New Features¶
Add
defer decorator
for application commands.Add
InteractionResonse.defer_update()
.Add
allowed_mentions
toInteractionReponse.edit_message()
.Add
response_type
kwarg toutils.oauth_url()
.
Bugs Fixed¶
Fix action rows not being parsed correctly.
Fixed
ephemeral
kwarg incommands.SlashContext.send()
andcommands.SlashContext.defer()
.Fix slash commands not working with cooldowns.
v0.0.1¶
The new and changed features described in this section refer to changes from Rapptz’s original Discord.py repo. You can see a whole list of changes here, but this section will go over the main ones.
Breaking Changes¶
TextChannel.get_partial_message
is now pos-onlypermissions_for
is now pos-onlyGroupChannel.owner
is now Optionaledit
methods now only accept None if it actually means something (e.g. clearing it)- Separate
on_member_update
andon_presence_update
The new event
on_presence_update
is now called when status/activity is changed.on_member_update
will now no longer have status/activity changes.
- Separate
afk
parameter inClient.change_presence
is removed- The undocumented private
on_socket_response
event got removed. Consider using the newer documented
on_socket_event_type
event instead.
- The undocumented private
Using
on_socket_raw_receive
andon_socket_raw_send
are now opt-in via enable_debug_events toggle.on_socket_raw_receive
is now only dispatched after decompressing the payload.All
get_
lookup functions now use positional-only parameters for the id parameter.User.avatar
now returnsNone
if the user did not upload an avatar.Use
User.display_avatar
to get the avatar and fallback to the default avatar to go back to the old behaviour.
New Features¶
Message components are now sendable using the bot UI kit.
Slash commands are now processed as message commands if sent through the gateway.
Client.register_application_commands()
will register all of your bot’s loaded commands as application commands.Threads as a whole (thanks to Danny).
Type hinting for a vast majority of the library (thanks to Danny).
Original¶
Everything at this point and before is forked directly from Rapptz’s Discord.py library. The changelogs from before that point (and thus before the existance of this library) have been removed.