Some fixes

This commit is contained in:
Kecskeméti László 2024-07-29 17:22:55 +02:00
parent 12791a0c3e
commit 6b3c273008
3 changed files with 4 additions and 9 deletions

View File

@ -458,11 +458,9 @@ public class JsonTests
GuildId: 5678,
Type: 2,
Position: 3,
Topic: "A very interesting topic",
Nsfw: true,
Bitrate: 420,
ParentId: 5555,
LastMessageId: 6969
ParentId: 5555
}
});
@ -504,15 +502,12 @@ public class JsonTests
Data:
{
Id: 922243411795390570,
Name: "voice csennel",
GuildId: 5678,
Type: 2,
Position: 3,
Topic: "A very interesting topic",
Nsfw: true,
Bitrate: 420,
ParentId: 5555,
LastMessageId: 6969
ParentId: 5555
}
});
}

View File

@ -10,5 +10,5 @@ internal class ChannelCreatePacket : DispatchPacket
[JsonRequired]
[JsonPropertyName("d")]
public required ChannelData Data { get; init; }
public required GuildChannelData Data { get; init; }
}

View File

@ -10,5 +10,5 @@ internal class ChannelUpdatePacket : DispatchPacket
[JsonRequired]
[JsonPropertyName("d")]
public required ChannelData Data { get; init; }
public required GuildChannelData Data { get; init; }
}