mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
feat(StageChannel): add createStageInstance method & use better naming convention (#5951)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -1882,7 +1882,8 @@ declare module 'discord.js' {
|
||||
export class StageChannel extends BaseGuildVoiceChannel {
|
||||
public topic: string | null;
|
||||
public type: 'stage';
|
||||
public readonly instance: StageInstance | null;
|
||||
public readonly stageInstance: StageInstance | null;
|
||||
public createStageInstance(options: StageInstanceCreateOptions): Promise<StageInstance>;
|
||||
}
|
||||
|
||||
export class StageInstance extends Base {
|
||||
@@ -2643,7 +2644,7 @@ declare module 'discord.js' {
|
||||
export class StageInstanceManager extends BaseManager<Snowflake, StageInstance, StageInstanceResolvable> {
|
||||
constructor(guild: Guild, iterable?: Iterable<any>);
|
||||
public guild: Guild;
|
||||
public create(options: CreateStageInstanceOptions): Promise<StageInstance>;
|
||||
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>;
|
||||
@@ -3226,8 +3227,7 @@ declare module 'discord.js' {
|
||||
reason?: string;
|
||||
}
|
||||
|
||||
interface CreateStageInstanceOptions {
|
||||
channel: StageChannel | Snowflake;
|
||||
interface StageInstanceCreateOptions {
|
||||
topic: string;
|
||||
privacyLevel?: PrivacyLevel | number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user