types: @typedef for StageChannelResolvable (#6568)

This commit is contained in:
Jiralite
2021-08-30 21:57:54 +01:00
committed by GitHub
parent 581921f8b7
commit 2c219cb982
2 changed files with 17 additions and 8 deletions

10
typings/index.d.ts vendored
View File

@@ -2715,10 +2715,10 @@ export class RoleManager extends CachedManager<Snowflake, Role, RoleResolvable>
export class StageInstanceManager extends CachedManager<Snowflake, StageInstance, StageInstanceResolvable> {
public constructor(guild: Guild, iterable?: Iterable<RawStageInstanceData>);
public guild: Guild;
public create(channel: StageChannel | Snowflake, options: StageInstanceCreateOptions): Promise<StageInstance>;
public fetch(channel: StageChannel | Snowflake, options?: BaseFetchOptions): Promise<StageInstance>;
public edit(channel: StageChannel | Snowflake, options: StageInstanceEditOptions): Promise<StageInstance>;
public delete(channel: StageChannel | Snowflake): Promise<void>;
public create(channel: StageChannelResolvable, options: StageInstanceCreateOptions): Promise<StageInstance>;
public fetch(channel: StageChannelResolvable, options?: BaseFetchOptions): Promise<StageInstance>;
public edit(channel: StageChannelResolvable, options: StageInstanceEditOptions): Promise<StageInstance>;
public delete(channel: StageChannelResolvable): Promise<void>;
}
export class ThreadManager<AllowedThreadType> extends CachedManager<Snowflake, ThreadChannel, ThreadChannelResolvable> {
@@ -4644,6 +4644,8 @@ export type SystemChannelFlagsResolvable = BitFieldResolvable<SystemChannelFlags
export type SystemMessageType = Exclude<MessageType, 'DEFAULT' | 'REPLY' | 'APPLICATION_COMMAND'>;
export type StageChannelResolvable = StageChannel | Snowflake;
export interface StageInstanceEditOptions {
topic?: string;
privacyLevel?: PrivacyLevel | number;