Skip to content

Commit

Permalink
fix(channel): more extensive equatable check
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAlgorithm committed Mar 16, 2024
1 parent e330735 commit 6b5d0ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/DiscordKitCore/Objects/Data/Channel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public enum ChannelType: Int, Codable {

public struct Channel: Identifiable, Codable, GatewayData, Equatable {
public static func == (lhs: Channel, rhs: Channel) -> Bool {
lhs.id == rhs.id && lhs.name == rhs.name && lhs.position == rhs.position
lhs.id == rhs.id && lhs.name == rhs.name && lhs.position == rhs.position && lhs.parent_id == rhs.parent_id && lhs.permission_overwrites == rhs.permission_overwrites
}

public let id: Snowflake
Expand Down
2 changes: 1 addition & 1 deletion Sources/DiscordKitCore/Objects/Data/Permission.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public enum PermOverwriteType: Int, Codable {
case member = 1
}

public struct PermOverwrite: Codable {
public struct PermOverwrite: Codable, Equatable {
public let id: Snowflake
public let type: PermOverwriteType
public let allow: Permissions
Expand Down

0 comments on commit 6b5d0ca

Please sign in to comment.