Skip to content
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
Compare
Choose a tag to compare
@Defxult Defxult released this 29 Sep 13:08
· 27 commits to main since this release
fa53201

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 to SelectMenu.init()

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 longer throws, is not an async method, and does not block to maintain the connection. Method Bot.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 use Bot.run() and to release the block, use Bot.close()
  • (Breaking Change) Property Bot.users is now of type Set<User>
  • (Breaking Change) The following have been renamed:
    • EventListener.init(name:isEnabled)EventListener.init(name:enabled)
    • SelectMenu.MenuType.channelsSelectMenu.MenuType.channel
    • SelectMenu.disabledSelectMenu.isDisabled
    • SelectMenu.Option.defaultSelectMenu.Option.isDefault
    • Guild.chunkedGuild.isChunked
    • Asset.animatedAsset.isAnimated
    • AutoModerationRule.enabledAutoModerationRule.isEnabled
    • ForumChannel.Tag.moderatedForumChannel.Tag.isModerated
    • VoiceChannel.State.guildDeafenedVoiceChannel.State.isGuildDeafened
    • VoiceChannel.State.guildMutedVoiceChannel.State.isGuildMuted
    • VoiceChannel.State.selfDeafenedVoiceChannel.State.isSelfDeafened
    • VoiceChannel.State.selfMutedVoiceChannel.State.isSelfMuted
    • VoiceChannel.State.streamingVoiceChannel.State.isStreaming
    • VoiceChannel.State.cameraEnabledVoiceChannel.State.isCameraEnabled
    • VoiceChannel.State.suppressedVoiceChannel.State.isSuppressed
    • ThreadChannel.archivedThreadChannel.isArchived
    • ThreadChannel.lockedThreadChannel.isLocked
    • Button.disabledButton.isDisabled
    • TextInput.requiredTextInput.isRequired
    • Embed.Field.inlineEmbed.Field.isInline
    • Emoji.requireColonsEmoji.requiresColons
    • Emoji.managedEmoji.isManaged
    • Emoji.animatedEmoji.isAnimated
    • Emoji.availableEmoji.isAvailable
    • PartialEmoji.animatedPartialEmoji.isAnimated
    • ApplicationCommandOption.requiredApplicationCommandOption.isRequired
    • ApplicationCommandInteractionDataOption.focusedApplicationCommandInteractionDataOption.isFocused
    • Invite.temporaryInvite.isTemporary
    • Message.Attachment.ephemeralMessage.Attachment.isEphemeral
    • Message.Attachment.spoilerMessage.Attachment.isSpoiler
    • ApplicationCommandPermissions.allowedApplicationCommandPermissions.isAllowed
    • Role.managedRole.isManaged
    • Role.mentionableRole.isMentionable
    • GuildSticker.availableGuildSticker.isAvailable
    • ClientUser.mfaEnabledClientUser.isMfaEnabled