UNPKG

corde

Version:

A simple library for Discord bot tests

11 lines (10 loc) 496 B
import { Role } from "discord.js"; import { IRoleIdentifier } from "../types"; declare class RoleUtils { createExpectedMessageForRoleData(roleIdentifier: IRoleIdentifier): string | null; getErrorForUndefinedRoleData(roleIdentifier: IRoleIdentifier): string | null; validateRole(role: Role | undefined, roleIdentifier: IRoleIdentifier): string | undefined; getRoleData(roleIdentifier: string | IRoleIdentifier): IRoleIdentifier; } declare const roleUtils: RoleUtils; export { roleUtils };