fix channel fromDiscord implementation

This commit is contained in:
2025-02-15 11:41:45 -06:00
parent a3514801fe
commit 962a1e9909
+1 -1
View File
@@ -152,7 +152,7 @@ export class Channel extends GatewayObject {
this.default_forum_layout = data.default_forum_layout; this.default_forum_layout = data.default_forum_layout;
} }
public static [Trait.fromDiscord]<T extends Channel>(data: DiscordChannel): T { public static [Trait.fromDiscord]<T = Channel>(data: DiscordChannel): T {
return new Channel({ return new Channel({
id: data.id, id: data.id,
type: data.type, type: data.type,