【文件属性】:
文件名称:discord-inv:获取有关不和谐邀请链接的更多信息!
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-09 08:11:10
nodejs api discord discordapp discord-invite
不和谐
NPM软件包,可从Discord API获取有关邀请的信息
对于用户可以输入其邀请链接的网站很有用
对于机器人检测不适合该行会的邀请很有用
支持Promise-API,因此您可以使用.then,.catch和其他所有东西 :winking_face:
退房或网站 。
从安装
$ npm i discord-inv --save
用法
getInv(inviteCode, imgSize = 64 , withCounts = true) -获取有关邀请的信息
inviteCode :邀请代码
imgSize :所有图像的大小(默认值:64)
withCounts :如果禁用approximate_member_count和approximate_presence_count是不会被退回(默认值= FALSE)
getCodeFromUrl(url) -将不一致的邀请网址格式化为邀请码
url :邀
【文件预览】:
discord-inv-main
----.gitignore(27B)
----package.json(689B)
----.npmrc(43B)
----package-lock.json(800B)
----LICENSE(34KB)
----index.js(2KB)
----README.md(3KB)
----test()
--------test.js(261B)