feat: toString()

This commit is contained in:
socram03 2022-06-25 16:43:00 -04:00
parent f364d55c59
commit aa1aaf6682

View File

@ -8,8 +8,12 @@ export abstract class Channel implements Model {
this.name = data.name;
this.type = data.type;
}
readonly id: Snowflake;
readonly session: Session;
readonly name: string | undefined;
readonly type: ChannelTypes;
id: Snowflake;
session: Session;
name?: string;
type: ChannelTypes;
toString(): string {
return `<#${this.id}>`;
}
}