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.name = data.name;
this.type = data.type; this.type = data.type;
} }
readonly id: Snowflake; id: Snowflake;
readonly session: Session; session: Session;
readonly name: string | undefined; name?: string;
readonly type: ChannelTypes; type: ChannelTypes;
toString(): string {
return `<#${this.id}>`;
}
} }