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
New Features
- Added Linux support 🥳.
- Added
throw
ing 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
toEventListener.onReady()
- Added method
EventListener.onRawGuildMemberUpdate()
- Added enum case
Message.Edit.flags
- Added struct
CacheManager
. This controls your bots caching capabilities. Completely disableUser
,Member
,GuildChannel
, orMessage
caching. Depending on your use case, this can reduce your bots memory footprint especially at scale. You can use the cache manager via parametercacheManager
inBot.init()
Bug Fixes
- Fixed an issue where property
Member.premiumSince
was alwaysnil
- 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
Discord
→Bot
- Enum case
GatewayError.invalidSeq
→GatewayError.invalidSequence
- Class
- (Breaking Change)
Bot.token
is no longer a property and can now be accessed via methodBot.token()
- (Breaking Change)
Bot.updatePresence()
is no longer anasync
method. - (Breaking Change) Parameter
maxMessagesCache
has been removed fromBot.init()
(replaced with parametercacheManager
). - (Breaking Change) Removed
MediaChannel
. This was added a tad bit too early. We'll wait for further documentation. Along with this change,Guild.mediaChannels
, andChannelType.media
have been removed. - (Breaking Change) Removed parameter
ignoreDms
fromBot.init()
. This was removed because intents provide more granular control of DMs. Even with it removed, you can still ignore DMs by excludingIntents.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 viaGuild.chunkMembers()
- The exclusion of the
guildPresences
intent has been added toIntents.default
- The associated value for enum case
Member.Edit.move
is nowVoiceChannel
- 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.