Discord-py

Latest version: v0.16.12

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

Scan your dependencies

Page 8 of 9

1.4.3

* Added a method `Bot.find_user` analogous to `Bot.find`.

Bugfixes
* Remove a leftover debug line (23, thanks VxJasonxV)

1.4.2

* discordrb will now send a user agent in the format requested by the Discord devs.

1.4.1

*Bugfix-only release.*

Bugfixes
* Empty messages will now never be sent
* The command-not-found message in `CommandBot` can now be disabled properly

1.4.0

* All methods and classes where the words "colour" or "color" are used now have had aliases added with the respective other spelling. (Internally, everything uses "colour" now).
* discordrb now supports everything on the Discord API comparison, except for voice (see also 22)
* Roles can now be created, edited and deleted and their permissions modified.
* There is now a method to get a channel's message history.
* The bot's user profile can now be edited.
* Servers can now be created, edited and deleted.
* The user can now display a "typing" message in a channel.
* Invites can now be created and deleted, and an `Invite` class was made to represent them.
* Command and event handling is now threaded, with each command/event handler execution in a separate thread.
* Debug messages now specify the current thread's name.
* discordrb now handles created/updated/deleted servers properly with events added to handle them.
* The list of games handled by Discord will now be updated automatically.

Bugfixes
* Fixed a bug where command handling would crash if the command didn't exist.

1.3.12

* Add an attribute `Bot.should_parse_self` (false by default) that prevents the bot from raising an event if it receives a message from itself.
* `User.bot?` and `Message.from_bot?` were implemented to check whether the user is the bot or the message was sent by it.
* Add an event for private messages specifically (`Bot.pm` and `PrivateMessageEvent`)

Bugfixes
* Fix the `MessageEvent` attribute that checks whether the message is from the bot not working at all.

1.3.11

* Add a user selector (`:bot`) that is usable in the `from:` `MessageEvent` attribute to check whether the message was sent by a bot.

Bugfixes
* `Channel.private?` now checks for the server being nil instead of the `is_private` attribute provided by Discord as the latter is unreliable. (wtf)

Page 8 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.