【文件属性】:
文件名称:discord-rich-presence:不和谐的RPC,但只有丰富的存在部分
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-02 20:11:55
discord rich-presence JavaScript
不和谐的存在
一个围绕简单包装器
例子
const client = require ( 'discord-rich-presence' ) ( '180984871685062656' ) ;
client . updatePresence ( {
state : 'slithering' ,
details : ':snake:' ,
startTimestamp : Date . now ( ) ,
endTimestamp : Date . now ( ) + 1337 ,
largeImageKey : 'snek_large' ,
smallImageKey : 'snek_small' ,
instance : true ,
} ) ;
在浏览器中,您可以将其导入/获取为discord-rich-presence/browser 。 但是,应该注意的是,Di
【文件预览】:
discord-rich-presence-master
----index.js(2KB)
----test.js(837B)
----package.json(875B)
----.github()
--------FUNDING.yml(446B)
----.npmignore(49B)
----.gitignore(24B)
----webpack.config.js(908B)
----.npmrc(19B)
----README.md(1KB)