【文件属性】:
文件名称:top.gg-core:top.gg API
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-05 21:51:26
JavaScript
安装
$ npm i top.gg-core
定
const top = require ( 'top.gg-core' ) ;
例子
设置
转到您的机器人的webhooks部分
单击显示令牌并复制粘贴
const topgg = new top . Client ( 'TOP GG TOKEN' ) ;
统计信息
topgg . post ( { servers : client . guilds . cache . size } ) . then ( console . log ) ; //post only server count | returning: boolean
topgg . post ( {
servers : client . guilds . cache . size ,
shard : {
id : client . Shard
【文件预览】:
top.gg-core-main
----lib()
--------Webhook.js(4KB)
--------TopClient.js(5KB)
----util()
--------request.js(1KB)
----README.md(5KB)
----errors()
--------TopGGApiError.js(237B)
--------TypeError.js(229B)
--------InternalError.js(291B)
----index.js(150B)
----package.json(395B)