Skip to content

Commit 6b5d0ca

Browse files
fix(channel): more extensive equatable check
1 parent e330735 commit 6b5d0ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/DiscordKitCore/Objects/Data/Channel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public enum ChannelType: Int, Codable {
3737

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

4343
public let id: Snowflake

Sources/DiscordKitCore/Objects/Data/Permission.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public enum PermOverwriteType: Int, Codable {
114114
case member = 1
115115
}
116116

117-
public struct PermOverwrite: Codable {
117+
public struct PermOverwrite: Codable, Equatable {
118118
public let id: Snowflake
119119
public let type: PermOverwriteType
120120
public let allow: Permissions

0 commit comments

Comments
 (0)