Skip to content
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
Compare
Choose a tag to compare
@Defxult Defxult released this 24 Sep 19:17
· 47 commits to main since this 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 various Message properties/methods to error because of a missing value. This only affected users who had it disabled.
  • (Breaking Change) Properties Guild.mentionChannelAndRoles and Guild.mentionBrowseChannels have been moved to Markdown
  • (Breaking Change) Removed struct User.PresenceActivity. Along with this change, its properties were converted into enum case associated values in enum User.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"))
  • Method Bot.updatePresence() no longer throws