Discord-py

Latest version: v0.16.12

Safety actively analyzes 629788 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

1.8.0

* The built-in logger has been somewhat redone.
* It now has a fancy mode, settable using `Discordrb::LOGGER.fancy = true/false`, that makes use of ANSI escape codes to prettify the log output.
* It now supports more things than just `debug`, there's also `warn`, `error`, `good`, `info`, `in`, and `out`.
* You now have finer control over what gets output, using `Discordrb::LOGGER.mode=` which accepts one of `:debug`, `:verbose`, `:normal`, `:quiet`, `:silent`.
* You can now log in with just a token by setting the email parameter to `:token` and the password to the token you want to log in with.
* DCA playback now supports `DCA1`.
* All data classes (now generalized using the `IDObject` mixin) have a `creation_date` parameter that specifies when the object was created.
* `Channelmention` was added that mentions a channel analogous to `Usermention`.
* The aliases `tag` and `discord_tag` have been added to the discriminator because that's what Discord calls them now.

Bugfixes
* A problem some users had where voice playback would leak FFmpeg processes has been fixed.
* The VWS internal thread now has a name in debug messages (`vws-i`)
* Users' voice channels should now always be set if they are in one

1.7.5

* `Channelsend_message` and `Botsend_message` now have an extra `tts` parameter (false by default) to specify whether the message should use TTS.

Bugfixes
* Attempting to `p` a data class, especially a `User` or `Profile`, should no longer lock up the interpreter due to very deep recursion.
* Manual TTS using `API.send_message` will now work correctly.

1.7.4

* Added methods `Channeltext?` and `Channelvoice?` to check a channel's type.
* Frequently allocated strings have been turned into symbols or frozen constants, this should improve performance slightly.

Bugfixes
* `VoiceBotdestroy` will now properly disconnect you and should no longer cause segfaults.
* Fixed a bug where you couldn't set any settings on a role created using `Servercreate_role`.
* Fixed `Profileavatar=` doing absolutely nothing.

1.7.3

* The server banlist can now be accessed more nicely using `Serverbans`.
* Some abstractions for OAuth application creation were added - `bot.create_oauth_application` and `bot.update_oauth_application`. See the docs about how to use them.

1.7.2

* The `bot` object can now be read from all events, not just from command ones.
* You can now set the `filter_volume` on VoiceBot, which corresponds to the old way of doing volume handling, in case the new way is too slow for you.

1.7.1

* A `clear!` method was added to EventContainer that removes all events from it, so you can overwrite modules by defining them again. (It's unnecessary for CommandContainers because commands can never be duplicate.)

Bugfixes
* The tokens will now be verified correctly when obtained from the cache. (I messed up last time)
* Events of the same type in different containers will now be merged correctly when including both containers.
* Got rid of the annoying `undefined method 'game' for nil:NilClass` error that sometimes occurred on startup. (It was harmless but now it's gone entirely)

Page 4 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.