This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
0.1.2-beta
Pre-release
Pre-release
New Features
- Added property
Message.customEmojis
- Added property
Markdown.mentionServerGuide
- Added method
EventListener.onDisconnect()
- Added method
Bot.run()
- Added method
Bot.close()
- Added struct
SelectMenu.DefaultValue
- Added property
SelectMenu.defaultValues
- Added parameter
defaultValues
toSelectMenu.init()
- Added property
Bug Fixes
- Fixed an issue where if
Bot.disconnect()
was used and the app didn't immediately exit/terminate, CPU and memory usage would peak indefinitely which would render your app unusable. With this fix, users can now freely connect and disconnect without issue (see updated). - Fixed an issue where an additional typing indicator would still be displayed even after
Messageable.triggerTyping(while:)
was finished executing.
Updated
- (Breaking Change) With bug fix 1, the way you connect to Discord has changed. With this update,
Bot.connect()
no longerthrows
, is not anasync
method, and does not block to maintain the connection. MethodBot.disconnect()
also no longer releases that block, they simply do as their name suggests, connects and disconnects. To connect and block to maintain the connection, you now useBot.run()
and to release the block, useBot.close()
- (Breaking Change) Property
Bot.users
is now of typeSet<User>
- (Breaking Change) The following have been renamed:
EventListener.init(name:isEnabled)
→EventListener.init(name:enabled)
SelectMenu.MenuType.channels
→SelectMenu.MenuType.channel
SelectMenu.disabled
→SelectMenu.isDisabled
SelectMenu.Option.default
→SelectMenu.Option.isDefault
Guild.chunked
→Guild.isChunked
Asset.animated
→Asset.isAnimated
AutoModerationRule.enabled
→AutoModerationRule.isEnabled
ForumChannel.Tag.moderated
→ForumChannel.Tag.isModerated
VoiceChannel.State.guildDeafened
→VoiceChannel.State.isGuildDeafened
VoiceChannel.State.guildMuted
→VoiceChannel.State.isGuildMuted
VoiceChannel.State.selfDeafened
→VoiceChannel.State.isSelfDeafened
VoiceChannel.State.selfMuted
→VoiceChannel.State.isSelfMuted
VoiceChannel.State.streaming
→VoiceChannel.State.isStreaming
VoiceChannel.State.cameraEnabled
→VoiceChannel.State.isCameraEnabled
VoiceChannel.State.suppressed
→VoiceChannel.State.isSuppressed
ThreadChannel.archived
→ThreadChannel.isArchived
ThreadChannel.locked
→ThreadChannel.isLocked
Button.disabled
→Button.isDisabled
TextInput.required
→TextInput.isRequired
Embed.Field.inline
→Embed.Field.isInline
Emoji.requireColons
→Emoji.requiresColons
Emoji.managed
→Emoji.isManaged
Emoji.animated
→Emoji.isAnimated
Emoji.available
→Emoji.isAvailable
PartialEmoji.animated
→PartialEmoji.isAnimated
ApplicationCommandOption.required
→ApplicationCommandOption.isRequired
ApplicationCommandInteractionDataOption.focused
→ApplicationCommandInteractionDataOption.isFocused
Invite.temporary
→Invite.isTemporary
Message.Attachment.ephemeral
→Message.Attachment.isEphemeral
Message.Attachment.spoiler
→Message.Attachment.isSpoiler
ApplicationCommandPermissions.allowed
→ApplicationCommandPermissions.isAllowed
Role.managed
→Role.isManaged
Role.mentionable
→Role.isMentionable
GuildSticker.available
→GuildSticker.isAvailable
ClientUser.mfaEnabled
→ClientUser.isMfaEnabled