This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
0.1.1-beta
Pre-release
Pre-release
New Features
- Added method
Member.getRole()
- Added method
Guild.getMember(name:)
- Added method
Bot.once()
- Added property
VoiceChannel.State.userId
- Added property
VoiceChannel.State.guildId
- Added property
VoiceChannel.State.member
- Added property
User.status
- Added property
User.activities
- Added property
User.platform
- Added property
User.isOnMobile
- Added property
User.Activity.flags
- Added enum
User.ActivityFlag
- Added struct
User.Platform
Bug Fixes
- Fixed an issue where if a user left a voice channel and they were not in the cache, an error would occur.
- Fixed an issue where property
VoiceChannel.members
would not return the proper amount of members. - Fixed an issue where an error could occur due to an unhandled
.goingAway
WebSocket event.
Updated
- (Breaking Change) Property
CacheManager.channels
has been removed. This caused an underlying issue where it was possible for variousMessage
properties/methods to error because of a missing value. This only affected users who had it disabled. - (Breaking Change) Properties
Guild.mentionChannelAndRoles
andGuild.mentionBrowseChannels
have been moved toMarkdown
- (Breaking Change) Removed struct
User.PresenceActivity
. Along with this change, its properties were converted into enum case associated values in enumUser.ActivityType
. This makes it a little easier to update your bot presence.- Before:
bot.updatePresence(status: .dnd, activity: .init(User.ActivityType.game, name: "in the clouds"))
- After:
bot.updatePresence(status: .dnd, activity: .game("in the clouds"))
- Before:
- Method
Bot.updatePresence()
no longerthrows