mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
chore(Types): include @discordjs/voice typings (#5941)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
21
typings/index.d.ts
vendored
21
typings/index.d.ts
vendored
@@ -152,6 +152,25 @@ declare enum WebhookTypes {
|
||||
|
||||
type Awaited<T> = T | Promise<T>;
|
||||
|
||||
declare module '@discordjs/voice' {
|
||||
import { GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from 'discord-api-types/v8';
|
||||
|
||||
export interface DiscordGatewayAdapterLibraryMethods {
|
||||
onVoiceServerUpdate(data: GatewayVoiceServerUpdateDispatchData): void;
|
||||
onVoiceStateUpdate(data: GatewayVoiceStateUpdateDispatchData): void;
|
||||
destroy(): void;
|
||||
}
|
||||
|
||||
export interface DiscordGatewayAdapterImplementerMethods {
|
||||
sendPayload(payload: any): boolean;
|
||||
destroy(): void;
|
||||
}
|
||||
|
||||
export type DiscordGatewayAdapterCreator = (
|
||||
methods: DiscordGatewayAdapterLibraryMethods,
|
||||
) => DiscordGatewayAdapterImplementerMethods;
|
||||
}
|
||||
|
||||
declare module 'discord.js' {
|
||||
import BaseCollection from '@discordjs/collection';
|
||||
import { ChildProcess } from 'child_process';
|
||||
@@ -380,7 +399,7 @@ declare module 'discord.js' {
|
||||
public valueOf(): N;
|
||||
public [Symbol.iterator](): IterableIterator<S>;
|
||||
public static FLAGS: unknown;
|
||||
public static resolve(bit?: BitFieldResolvable<S, N>): number | bigint;
|
||||
public static resolve(bit?: BitFieldResolvable<any, number | bigint>): number | bigint;
|
||||
}
|
||||
|
||||
export class ButtonInteraction extends MessageComponentInteraction {
|
||||
|
||||
Reference in New Issue
Block a user