types(Integration): Add IntegrationType values (#6815)

This commit is contained in:
Jiralite
2021-10-12 18:35:26 +01:00
committed by GitHub
parent b030130df1
commit 187581dd84
2 changed files with 13 additions and 3 deletions

4
typings/index.d.ts vendored
View File

@@ -1053,7 +1053,7 @@ export class Integration extends Base {
public readonly roles: Collection<Snowflake, Role>;
public syncedAt: number | undefined;
public syncing: boolean | undefined;
public type: string;
public type: IntegrationType;
public user: User | null;
public subscriberCount: number | null;
public revoked: boolean | null;
@@ -4207,6 +4207,8 @@ export interface IntegrationAccount {
name: string;
}
export type IntegrationType = 'twitch' | 'youtube' | 'discord';
export interface InteractionCollectorOptions<T extends Interaction> extends CollectorOptions<[T]> {
channel?: TextBasedChannels;
componentType?: MessageComponentType | MessageComponentTypes;