UNPKG

discord-analytics

Version:

A discord bot analytics to send your bot data

49 lines (48 loc) 1.46 kB
export interface EventsToTrack { trackInteractions: boolean; trackGuilds: boolean; trackUserCount: boolean; trackUserLanguage: boolean; trackGuildsLocale: boolean; } export declare const ApiEndpoints: { BASE_URL: string; EDIT_SETTINGS_URL: string; EDIT_STATS_URL: string; }; export declare const ErrorCodes: { INVALID_CLIENT_TYPE: string; CLIENT_NOT_READY: string; INVALID_RESPONSE: string; INVALID_API_TOKEN: string; DATA_NOT_SENT: string; SUSPENDED_BOT: string; INSTANCE_NOT_INITIALIZED: string; INVALID_EVENTS_COUNT: string; }; export type Locale = 'id' | 'en-US' | 'en-GB' | 'bg' | 'zh-CN' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'nl' | 'fi' | 'fr' | 'de' | 'el' | 'hi' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'ru' | 'es-ES' | 'sv-SE' | 'th' | 'tr' | 'uk' | 'vi'; export declare enum InteractionType { Ping = 1, ApplicationCommand = 2, MessageComponent = 3, ApplicationCommandAutocomplete = 4, ModalSubmit = 5 } export declare enum ApplicationCommandType { ChatInputCommand = 1, UserCommand = 2, MessageCommand = 3 } export interface InteractionData { name: string; number: number; type: InteractionType; command_type?: ApplicationCommandType; } export interface DiscordAnalyticsOptions { client: any; apiToken: string; sharded?: boolean; debug?: boolean; } export type TrackGuildType = "create" | "delete";