This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
Releases: Defxult/Discord.swift
Releases · Defxult/Discord.swift
0.0.8-alpha
New Features
- Added property
PermissionOverwrites.type
. - Structures
Asset
andColor
now conform to protocolHashable
.
Bug Fixes
- Fixed an issue where
PermissionOverwrites.init()
could error if theMember
that was passed to thefor
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 toid
and is now of typeSnowflake
. - Parameter
id
have been added toPermissionOverwrites.init()
. Thefor
parameter is now of typeOverwriteType
. 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
- Property
0.0.7-alpha
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 aFile
. 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 methodDiscord.getMember()
. - (Breaking Change) Method
Message.Attachment.toFile()
was renamed toMessage.Attachment.download()
.
0.0.6-alpha
New Features
- Added method
Asset.download()
. - Added parameter
ignoreDms
toDiscord.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
- Documentation is now available: https://discord-swift.gitbook.io/discord.swift/resources/documentation
0.0.5-alpha
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 protocolGuildChannel
. - Added init
Color(hex:)
.
Bug Fixes
- Fixed an issue where channels that have a
category
property would returnnil
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
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
andMessage.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 toescape
and is now underMarkdown.escape()
. This also comes with a new parameter named:ignoreUrls
. - (Breaking Change) Function
formatTimestamp()
was renamed totimestamp
and is now underMarkdown.timestamp()
. - (Breaking Change) Enum
TimestampStyle
is now underMarkdown.TimestampStyle
.
- (Breaking Change) Function
0.0.3-alpha
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
returningnil
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()
parametersbefore
andafter
are now of typeDate
. - (Breaking Change) Method
Guild.bans()
return type is nowGuild.AsyncBans
. - (Breaking Change) Method
ScheduledEvent.users()
parametersbefore
andafter
are now of typeDate
. - (Breaking Change) Method
ScheduledEvent.users()
return type is nowScheduledEvent.AsyncUsers
. - Various documentation improvements. Added documentation that was missing and corrected typos.
v0.0.2-alpha
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
toMetadata
. - (Breaking Change) Renamed
AutoModerationRule.Edit.triggers
tometadata
. - Added
AutoModerationRule.metadata
. This now houses data such askeywordFilter
,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
fromAutoModerationRule.Metadata
.
- (Breaking Change) Renamed
- (Breaking Change) Parameter
triggerData
renamed tometadata
in methodGuild.createAutoModerationRule()
. - With the addition of
OAuth2Scopes
, the following has been updated:- (Breaking Change) Property
Application.InstallParams.scopes
is now of typeSet<OAuth2Scopes>
(wasArray<String>
). - (Breaking Change) Property
Guild.Integration.scopes
is now of typeSet<OAuth2Scopes>
(wasArray<String>
).
- (Breaking Change) Property
v0.0.1-alpha
Initial release of Discord.swift