Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add applied_tags to execute-webhook payload #61

Merged
merged 1 commit into from Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions Sources/DiscordModels/Types/Payloads.swift
Expand Up @@ -506,7 +506,8 @@ public enum Payloads {
public var attachments: [Attachment]?
public var flags: IntBitField<DiscordChannel.Message.Flag>?
public var thread_name: String?

public var applied_tags: [ForumTagSnowflake]?

enum CodingKeys: CodingKey {
case content
case username
Expand All @@ -518,9 +519,10 @@ public enum Payloads {
case attachments
case flags
case thread_name
case applied_tags
}

public init(content: String? = nil, username: String? = nil, avatar_url: String? = nil, tts: Bool? = nil, embeds: [Embed]? = nil, allowed_mentions: AllowedMentions? = nil, components: [Interaction.ActionRow]? = nil, files: [RawFile]? = nil, attachments: [Attachment]? = nil, flags: IntBitField<DiscordChannel.Message.Flag>? = nil, thread_name: String? = nil) {
public init(content: String? = nil, username: String? = nil, avatar_url: String? = nil, tts: Bool? = nil, embeds: [Embed]? = nil, allowed_mentions: AllowedMentions? = nil, components: [Interaction.ActionRow]? = nil, files: [RawFile]? = nil, attachments: [Attachment]? = nil, flags: IntBitField<DiscordChannel.Message.Flag>? = nil, thread_name: String? = nil, applied_tags: [ForumTagSnowflake]? = nil) {
self.content = content
self.username = username
self.avatar_url = avatar_url
Expand All @@ -532,6 +534,7 @@ public enum Payloads {
self.attachments = attachments
self.flags = flags
self.thread_name = thread_name
self.applied_tags = applied_tags
}

public func validate() -> [ValidationFailure] {
Expand Down