From aa1aaf6682a03e748246ec6c55621f68d6dba24c Mon Sep 17 00:00:00 2001 From: socram03 Date: Sat, 25 Jun 2022 16:43:00 -0400 Subject: [PATCH] feat: toString() --- structures/Channel.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/structures/Channel.ts b/structures/Channel.ts index 3aebeaa..40e3bd7 100644 --- a/structures/Channel.ts +++ b/structures/Channel.ts @@ -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}>`; + } }