Some fixes
This commit is contained in:
parent
12791a0c3e
commit
6b3c273008
@ -458,11 +458,9 @@ public class JsonTests
|
|||||||
GuildId: 5678,
|
GuildId: 5678,
|
||||||
Type: 2,
|
Type: 2,
|
||||||
Position: 3,
|
Position: 3,
|
||||||
Topic: "A very interesting topic",
|
|
||||||
Nsfw: true,
|
Nsfw: true,
|
||||||
Bitrate: 420,
|
Bitrate: 420,
|
||||||
ParentId: 5555,
|
ParentId: 5555
|
||||||
LastMessageId: 6969
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -504,15 +502,12 @@ public class JsonTests
|
|||||||
Data:
|
Data:
|
||||||
{
|
{
|
||||||
Id: 922243411795390570,
|
Id: 922243411795390570,
|
||||||
Name: "voice csennel",
|
|
||||||
GuildId: 5678,
|
GuildId: 5678,
|
||||||
Type: 2,
|
Type: 2,
|
||||||
Position: 3,
|
Position: 3,
|
||||||
Topic: "A very interesting topic",
|
|
||||||
Nsfw: true,
|
Nsfw: true,
|
||||||
Bitrate: 420,
|
Bitrate: 420,
|
||||||
ParentId: 5555,
|
ParentId: 5555
|
||||||
LastMessageId: 6969
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,5 +10,5 @@ internal class ChannelCreatePacket : DispatchPacket
|
|||||||
|
|
||||||
[JsonRequired]
|
[JsonRequired]
|
||||||
[JsonPropertyName("d")]
|
[JsonPropertyName("d")]
|
||||||
public required ChannelData Data { get; init; }
|
public required GuildChannelData Data { get; init; }
|
||||||
}
|
}
|
||||||
@ -10,5 +10,5 @@ internal class ChannelUpdatePacket : DispatchPacket
|
|||||||
|
|
||||||
[JsonRequired]
|
[JsonRequired]
|
||||||
[JsonPropertyName("d")]
|
[JsonPropertyName("d")]
|
||||||
public required ChannelData Data { get; init; }
|
public required GuildChannelData Data { get; init; }
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user