UNPKG

@globalart/nestcord

Version:

A module for creating Discord bots using NestJS, based on Discord.js

23 lines (22 loc) 895 B
import { OnModuleInit } from '@nestjs/common'; import { Client, ShardClientUtil } from 'discord.js'; import { NestCordStatReporterOptions } from './interfaces'; import { SchedulerRegistry } from '@nestjs/schedule'; import { HttpService } from '@nestjs/axios'; export declare class NestCordStatReporterService implements OnModuleInit { private readonly client; private readonly shard; private readonly options; private readonly schedulerRegistry; private readonly httpService; private readonly logger; constructor(client: Client, shard: ShardClientUtil, options: NestCordStatReporterOptions, schedulerRegistry: SchedulerRegistry, httpService: HttpService); onModuleInit(): void; private isFirstShard; private isProduction; private setupCronJobs; private reportStats; private calculateServerCount; private logStats; private logErrors; }