mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
fix channel fromDiscord implementation
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user