This repository was archived by the owner on Aug 1, 2021. It is now read-only.
Repository navigation
Additions
- Added support for Guild audit logs, exposed via
Guild.get_audit_log_entries,Guild.audit_logandGuild.audit_log_iter. For more information see theAuditLogEntrymodel - Added built-in Flask HTTP server which can be enabled via
http_enabledand configured viahttp_host/http_portconfig options. The server allows plugins to define routes which can be called externally. - Added support for capturing the raw responses returned from API requests via the
APIClient.capturecontextmanager - Added support for NSFW channels via
Channel.nsfwandChannel.is_nsfw - Added initial support for channel categories via
Channel.parent_idandChannel.parent - Added various setters for updating Channel properties, e.g.
Channel.set_topic - Added support for audit log reasons, accessible through passing
reasonto various methods - Added
disco.util.snowflake.from_timestamp_ms - Added support for
on_completecallback within DCADOpusEncoderPlayable - BREAKING Added new custom queue types
BaseQueue/PlayableQueuefor use w/Player.queuecan be passed when creating aPlayer, should inherit from BaseQueue- Users who previously utilized the
putmethod of the oldPlayer.queuemust move to usingPlayer.queue.append, or providing a custom queue implementation.
- Added
Emoji.customproperty
Fixes
- Fixed GuildRoleCreate missing guild_id, resulting in incorrect state
- Fixed SimpleLimiter behaving incorrectly (causing GW socket to be ratelimited in some cases)
- Fixed the shortest possible match for a single command being an empty string
- Fixed group matching being overly greedy, which allowed for extra characters to be allowed at the end of a group match
- Fixed errors thrown when not enabling manhole via cli
- Fixed various warnings emitted due to useage of StopIteration
- Fixed warnings about missing voice libs when importing
disco.types.channel - Fixed
Bot.get_commands_for_messagereturning None (instead of empty list) in some cases
Etc
- Greatly imrpoved the performance of
HashMap - BREAKING Increased the weight of group matches over command argument matches, and limited the number of commands executed per message to one.
- Reuse a buffer in voice code to slightly improve performance