UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

12 lines (11 loc) 552 B
import { BasePermission } from '../structures'; import type { TwitchContext } from '../structures'; import { Permission } from '../enums'; import type { EventSubConnection } from '../enums'; /** * Validate the permission of the user. * @param permission The permission to validate. * @param ctx The context of the command. * @returns Whether the user has passed the permission. */ export declare function validatePermission<T extends EventSubConnection>(permission: typeof BasePermission<T> | Permission, ctx: TwitchContext<{}, T>): Promise<any>;