@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
14 lines (13 loc) • 828 B
TypeScript
import type { WebhookConnection, WebhookSubscription, WebSocketSubscription } from '@twitchfy/eventsub';
import { SubscriptionTypes } from '@twitchfy/eventsub';
import type { ChatBot } from '../structures';
import { ChannelProfile } from '../structures';
import type { EventSubConnection } from '../enums';
/**
* Handle the subscription reload.
* @param this The current instance of the chatbot.
* @param subscription The subscription to reload.
* @internal
*/
export declare function handleSubscriptionReload<T extends EventSubConnection>(this: ChatBot<T>, subscription: T extends WebhookConnection ? WebhookSubscription<SubscriptionTypes> : WebSocketSubscription<SubscriptionTypes>): void;
export declare function initEvent<T extends EventSubConnection>(profile: ChannelProfile<T> | null, type: SubscriptionTypes): void;