UNPKG

discord-guildpeek

Version:

Get a public preview of a Discord server from its invite code, without authentication.

18 lines (17 loc) 642 B
import { getInviteStatusV9 } from './api/v9'; // Export utilities and types export * from './tools'; // Export all API versions export * from './api/v9'; /** * Retrieves the status of a Discord invite by its ID. * * This function is a wrapper for the latest version of the Discord API (**V9**). * For compatibility with previous versions, use the version-specific functions such as getInviteStatusV9, etc. * * @param inviteId - The unique identifier of the Discord invite. * @returns A promise that resolves to the status of the Discord invite. */ export function getInviteStatus(inviteId) { return getInviteStatusV9(inviteId); }