mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
feat: BaseChannel.isStage
This commit is contained in:
parent
9a5a25c2d5
commit
948cd2f717
@ -1,8 +1,5 @@
|
||||
{
|
||||
"fmt": {
|
||||
"files": {
|
||||
"exclude": "vendor"
|
||||
},
|
||||
"options": {
|
||||
"indentWidth": 4,
|
||||
"lineWidth": 120
|
||||
|
@ -7,6 +7,7 @@ import type VoiceChannel from "./VoiceChannel.ts";
|
||||
import type DMChannel from "./DMChannel.ts";
|
||||
import type NewsChannel from "./NewsChannel.ts";
|
||||
import type ThreadChannel from "./ThreadChannel.ts";
|
||||
import type StageChannel from "./StageChannel.ts";
|
||||
import { ChannelTypes } from "../../vendor/external.ts";
|
||||
import { textBasedChannels } from "./TextChannel.ts";
|
||||
|
||||
@ -43,6 +44,10 @@ export abstract class BaseChannel implements Model {
|
||||
return this.type === ChannelTypes.GuildPublicThread || this.type === ChannelTypes.GuildPrivateThread;
|
||||
}
|
||||
|
||||
isStage(): this is StageChannel {
|
||||
return this.type === ChannelTypes.GuildStageVoice;
|
||||
}
|
||||
|
||||
toString(): string {
|
||||
return `<#${this.id}>`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user