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

0.1.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@Defxult Defxult released this 15 Sep 15:01
· 64 commits to main since this release

New Features

  • Added Linux support 🥳.
  • Added throwing of gateway errors.
  • Added method Guild.chunkMembers()
  • Added property Guild.chunked
  • Added property Guild.memberCount
  • Added property ClientUser.bot
  • Added property User.displayName
  • Added property Message.nonce
  • Added property Message.isMentioned
  • Added parameter user to EventListener.onReady()
  • Added method EventListener.onRawGuildMemberUpdate()
  • Added enum case Message.Edit.flags
  • Added struct CacheManager. This controls your bots caching capabilities. Completely disable User, Member, GuildChannel, or Message caching. Depending on your use case, this can reduce your bots memory footprint especially at scale. You can use the cache manager via parameter cacheManager in Bot.init()

Bug Fixes

  • Fixed an issue where property Member.premiumSince was always nil
  • Fixed a pre-release issue where thread related events weren't being dispatched.
  • Fixed a spelling error that prevented sharding from being enabled.

Updated

  • (Breaking Change) The following has been renamed:
    • Class DiscordBot
    • Enum case GatewayError.invalidSeqGatewayError.invalidSequence
  • (Breaking Change) Bot.token is no longer a property and can now be accessed via method Bot.token()
  • (Breaking Change) Bot.updatePresence() is no longer an async method.
  • (Breaking Change) Parameter maxMessagesCache has been removed from Bot.init() (replaced with parameter cacheManager).
  • (Breaking Change) Removed MediaChannel. This was added a tad bit too early. We'll wait for further documentation. Along with this change, Guild.mediaChannels, and ChannelType.media have been removed.
  • (Breaking Change) Removed parameter ignoreDms from Bot.init(). This was removed because intents provide more granular control of DMs. Even with it removed, you can still ignore DMs by excluding Intents.dmMessages, in addition to the other DM related intents.
  • Initial startup Guild Member Chunking has been removed. Prior to this update, if you had Intents.guildPresences enabled, all members for every guild would be cached. This would unnecessarily inflate memory usage. With it being removed, you can still opt-in to caching every member of a guild via Guild.chunkMembers()
  • The exclusion of the guildPresences intent has been added to Intents.default
  • The associated value for enum case Member.Edit.move is now VoiceChannel
  • The EventListener.onReady() event is now dispatched when all guilds have been cached. Unlike before where it would dispatch when all guilds and all its members were cached.
  • With Linux support, Vapor and WebSocketKit have been added as dependencies.