Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

0.7.0 - Container Edition

Latest
Compare
Choose a tag to compare
@Fuyukai Fuyukai released this 11 Mar 18:01
· 117 commits to 0.8 since this release
240015f
  • Add get-by-name to :class:.GuildChannelWrapper, and :class:.GuildRoleWrapper.

  • Add :attr:.Invite.features.

  • Add :class:.GameType for game types.

  • Make :attr:.Invite.inviter a property that returns a :class:.Member if one can be found.

  • Remove :meth:.Client.boot_shard amongst others, and create :meth:.Client.handle_shard to
    do all gateway-related handling functions.

  • Add :attr:.Channel.overwrites for a key-value mapping of overwrites.

  • Add :class:.Nickname, and make :attr:.Member.nickname an instance of :class:.Nickname.

  • Add :meth:.EventManager.wait_for_manager.

  • Rename MEMBER_ events to GUILD_MEMBER_ events.

  • Add :class:._MemberRoleContainer, and make :attr:.Member.roles an instance of this.

  • Add :attr:.Message.emojis.

  • Add :class:.ChannelMessagesWrapper, and move everything to point to it.

  • Rewrite the gateway code significantly.

    • Use Lomond in a thread instead of our own wrapper.

    • Make opening a gateway a context manager.

    • Use proper dataclasses for state.

  • Add :class:.AvatarUrl.

  • Add :class:.GuildBan, and make :meth:.Guild.get_bans return a list of those.

  • Move :attr:.Guild._splash_hash and :attr:.Guild._icon_hash to public attributes.

  • Add a permissions.pyi file for static introspection of the permissions class.

  • Add a :class:.GuildBanContainer.

  • Enable :mod:trio support.

  • Add :func:.autoplugin which automatically assigns commands inside a plugin.

  • Add :meth:.Plugin.spawn for easy background task spawning.

  • Add :attr:.Channel.children to get the children of a channel.

  • Deprivatize :meth:.State.find_message.

  • Lookup messages in the cache to avoid a roundtrip when doing :meth:.ChannelMessagesWrapper.get.