Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Releases: Defxult/Discord.swift

0.0.8-alpha

28 Jun 13:14
Compare
Choose a tag to compare
0.0.8-alpha Pre-release
Pre-release

New Features

  • Added property PermissionOverwrites.type.
  • Structures Asset and Color now conform to protocol Hashable.

Bug Fixes

  • Fixed an issue where PermissionOverwrites.init() could error if the Member that was passed to the for parameter was not found in the internal cache.

Updated

  • Property Message.Reference.failIfNotExists was changed to a variable instead of a constant.
  • (Breaking Change) PermissionOverwrites
    • Property PermissionOverwrites.target was renamed to id and is now of type Snowflake.
    • Parameter id have been added to PermissionOverwrites.init(). The for parameter is now of type OverwriteType.
    • PermissionOverwrites.init() is no longer failable. With this change, the following no longer returns optional values:
      • GuildChannel.overwrites
      • CategoryChannel.overwrites
      • TextChannel.overwrites
      • ForumChannel.overwrites
      • VoiceChannel.overwrites
      • ThreadChannel.overwrites

0.0.7-alpha

23 Jun 16:15
Compare
Choose a tag to compare
0.0.7-alpha Pre-release
Pre-release

New Features

  • Added property Discord.channels.
  • Added property Discord.voiceStates.
  • Added property Member.mutualGuilds.
  • Added protocol Downloadable. All conforming objects now have a .download() method. This provides an easy way to convert URLs (such as images) into a File. With this addition, the following objects now conform to that protocol:
    • Asset
    • Message.Attachment (see updated)
    • Embed.Image
    • Embed.Thumbnail
    • Emoji

Bug Fixes

  • Fixed method Discord.getMember() sometimes returning the wrong member (see updated).
  • Fixed event listener onGuildMemberRemove() sometimes dispatching the wrong member.

Updated

  • (Breaking Change) Added parameter in to method Discord.getMember().
  • (Breaking Change) Method Message.Attachment.toFile() was renamed to Message.Attachment.download().

0.0.6-alpha

19 Jun 13:42
e6be842
Compare
Choose a tag to compare
0.0.6-alpha Pre-release
Pre-release

New Features

  • Added method Asset.download().
  • Added parameter ignoreDms to Discord.init().
  • Added the following cases for Permissions:
    • Permissions.useExternalSoundboard
    • Permissions.sendVoiceMessages

Updated

  • The following have been enabled in property Permissions.default:
    • Permissions.useVoiceActivityDetection
    • Permissions.useSoundboard
    • Permissions.useExternalSoundboard
    • Permissions.sendVoiceMessages

Miscellaneous

0.0.5-alpha

13 Jun 17:10
Compare
Choose a tag to compare
0.0.5-alpha Pre-release
Pre-release

New Features

  • Added function channelLink().
  • Added function messageLink().
  • Added property Guild.categories.
  • Added property GuildChannel.guild.
  • Added property GuildChannel.guildId.
  • Added property CategoryChannel.channels.
  • Added property categoryId to all channel types that conform to protocol GuildChannel.
  • Added init Color(hex:).

Bug Fixes

  • Fixed an issue where channels that have a category property would return nil even when they belonged to a category.
  • Fixed an issue where audit logs were not being filtered by their actionType even when an action type was set.
  • Fixed an issue where the following methods would error if a message had a reaction:
    • Messageable.history()
    • Messageable.requestMessage()

0.0.4-alpha

07 Jun 13:46
Compare
Choose a tag to compare
0.0.4-alpha Pre-release
Pre-release

New Features

  • Added property ApplicationCommand.mention.
  • Added property Message.mention (see updated).
  • Added struct Markdown. This contains all methods related to markdowns. The following has been added:
    • Markdown.blockQuote()
    • Markdown.bold()
    • Markdown.codeBlock()
    • Markdown.customEmoji()
    • Markdown.escape()
    • Markdown.header()
    • Markdown.inlineCode()
    • Markdown.list()
    • Markdown.maskedLink()
    • Markdown.mentionChannel()
    • Markdown.mentionRole()
    • Markdown.mentionSlashCommand()
    • Markdown.mentionUser()
    • Markdown.spoiler()
    • Markdown.suppressLinkEmbed()
    • Markdown.strikethrough()
    • Markdown.underline()

Bug Fixes

  • Fixed property Emoji.url returning a .png URL even when the emoji was animated (.gif).

Updated

  • Property GuildChannel.jumpUrl and Message.jumpUrl now returns a suppressed link. With the Discord app update, messages that contain channel/message links are displayed as mentions. This changes it so that .jumpUrl and .mention have separate use cases.
  • With the addition of Markdown, the following has been changed:
    • (Breaking Change) Function clean() was renamed to escape and is now under Markdown.escape(). This also comes with a new parameter named :ignoreUrls.
    • (Breaking Change) Function formatTimestamp() was renamed to timestamp and is now under Markdown.timestamp().
    • (Breaking Change) Enum TimestampStyle is now under Markdown.TimestampStyle.

0.0.3-alpha

01 Jun 15:01
Compare
Choose a tag to compare
0.0.3-alpha Pre-release
Pre-release

New Features

  • Added method Discord.waitUntilReady().
  • Added method File.download().

Bug Fixes

  • Fixed event listener onReady() not being dispatched when certain intents were missing.
  • Fixed the possibility that VoiceChannel.State (Guild.voiceStates) wouldn't' be fully updated.
  • Fixed property Guild.discoverySplash returning nil even if a discovery splash was present.
  • Fixed property Guild.splash not being updated.
  • Fixed method ScheduledEvent.users() error when called.

Updated

  • (Breaking Change) Method Guild.bans() parameters before and after are now of type Date.
  • (Breaking Change) Method Guild.bans() return type is now Guild.AsyncBans.
  • (Breaking Change) Method ScheduledEvent.users() parameters before and after are now of type Date.
  • (Breaking Change) Method ScheduledEvent.users() return type is now ScheduledEvent.AsyncUsers.
  • Various documentation improvements. Added documentation that was missing and corrected typos.

v0.0.2-alpha

27 May 18:33
Compare
Choose a tag to compare
v0.0.2-alpha Pre-release
Pre-release

New Features

  • Added function getVariable().
  • Added function oauth2Url().
  • Added method Array.chunked().
  • Added property Guild.safetyAlertsChannelId.
  • Added property Discord.emojis.
  • Added case Guild.Feature.raidAlertsDisabled.
  • Added enum OAuth2Scopes (see updated).

Bug Fixes

  • Fixed Embed.clear() not removing the timestamp.
  • Fixed PartialInvite.inviter error when missing inviter.

Updated

  • Function clean() now escapes bullet points and headers.
  • AutoModerationRule
    • (Breaking Change) Renamed AutoModerationRule.TriggerData to Metadata.
    • (Breaking Change) Renamed AutoModerationRule.Edit.triggers to metadata.
    • Added AutoModerationRule.metadata. This now houses data such as keywordFilter, presets, etc.
    • Added AutoModerationRule.Metadata.mentionRaidProtectionEnabled.
    • Added AutoModerationRule.Metadata documentation.
    • (Breaking Change) Removed AutoModerationRule.keywordFilter.
    • (Breaking Change) Removed AutoModerationRule.presets.
    • (Breaking Change) Removed parameter mentionTotalLimit from AutoModerationRule.Metadata.
  • (Breaking Change) Parameter triggerData renamed to metadata in method Guild.createAutoModerationRule().
  • With the addition of OAuth2Scopes, the following has been updated:
    • (Breaking Change) Property Application.InstallParams.scopes is now of type Set<OAuth2Scopes> (was Array<String>).
    • (Breaking Change) Property Guild.Integration.scopes is now of type Set<OAuth2Scopes> (was Array<String>).

v0.0.1-alpha

18 May 02:36
Compare
Choose a tag to compare
v0.0.1-alpha Pre-release
Pre-release

Initial release of Discord.swift