feat(VoiceState): add methods for fetching voice state

#10442 backport
This commit is contained in:
Elysia
2024-09-17 19:25:19 +07:00
parent 8dfa37fbd9
commit 5a0910a4f9
3 changed files with 33 additions and 0 deletions

2
typings/index.d.ts vendored
View File

@@ -3559,6 +3559,7 @@ export class VoiceState extends Base {
public setStatus(status?: string): Promise<void>;
public getPreview(): Promise<string>;
public postPreview(base64Image: string): Promise<void>;
public fetch(force?: boolean): Promise<VoiceState>;
}
export class Webhook extends WebhookMixin() {
@@ -4579,6 +4580,7 @@ export class UserManager extends CachedManager<Snowflake, User, UserResolvable>
export class VoiceStateManager extends CachedManager<Snowflake, VoiceState, typeof VoiceState> {
private constructor(guild: Guild, iterable?: Iterable<RawVoiceStateData>);
public guild: Guild;
public fetch(member: GuildMemberResolvable | '@me', options?: BaseFetchOptions): Promise<VoiceState>;
}
//#endregion