mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
Add BaseChannel.fetch method
This commit is contained in:
parent
c5ef900b38
commit
1b814cebdf
@ -102,6 +102,12 @@ export abstract class BaseChannel implements Model {
|
||||
return this.type === ChannelTypes.GuildStageVoice;
|
||||
}
|
||||
|
||||
async fetch(): Promise<Channel> {
|
||||
const channel = await this.session.rest.get<DiscordChannel>(CHANNEL(this.id));
|
||||
|
||||
return ChannelFactory.from(this.session, channel);
|
||||
}
|
||||
|
||||
toString(): string {
|
||||
return `<#${this.id}>`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user