mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 14:36:09 +00:00
feat: toString()
This commit is contained in:
parent
f364d55c59
commit
aa1aaf6682
@ -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}>`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user