Discord Rich Presence
1.0.0
该项目是通过使用名为discord-rpc
软件包来制作的,您可以通过单击此处查看其详细信息,如果您想获得此效果的更轻松的版本,但是请注意,如果您想要的话,它没有按钮功能仅显示大图像和小图像然后单击此处
node.js
Visual Studio代码
git
不和谐
◙通过单击此处,然后转到屏幕左上角,转到Discord Developer Portal,请参阅创建应用程序,然后命名。
◙然后在Rich Presence
类别下单击该应用程序,您将看到Art Assets
单击。
◙将封面图像设置为您在场的围栏图像。
◙向下滚动单击“添加资产”,然后选择要提供的图像作为大图像和小图像,还要确保它们的大小至少为512 x 512。
◙获取package.json文件类型npm install discord-rpc
,请转到编辑器类型npm init -y
的终端,其余填充详细信息都在文件index.js
中。
◙填写详细信息和内容后,请转到终端,然后键入node index.js
来运行文件夹。
注意:如果您在Visual Studio Code中使用Discord Offict,请在Command Prompt
或Powershell
上运行文件夹。
转到config.json
{
"ClientID" : "" , //Take the client id from the discord developer portal
"LargeImage" : "" , //The name of your image that you have saved in the art asset of your application
"LargeImageText" : "" , //If you wanna mention the large image when you hover your mouse then fill this whatever you want
"SmallImage" : "" , //Name of your image that you have saved in the art asset of your application
"SmallImageText" : "" , //If you wanna mention the small image when hover the cursor then fill this up whatever you want
"Button1" : "" , // Name of the first button you wanna provide
"Url1" : "" , // Link that you wanna get redirected to
"Button2" : "" , // Name of the second button you wanna provide
"Url2" : "" , // Link that you wanna get redirected to after clicking the button
"State" : "" , // State that you wanna mention
"Details" : "" // Details that you wanna mention
}
注意该按钮对您不起作用,但不必担心它对他人有用
转到config.json
{
"ClientID" : "790838692280926238" ,
"LargeImage" : "sunglasses_" ,
"LargeImageText" : "Dumb Normies" ,
"SmallImage" : "5845cd430b2a3b54fdbaecf8" ,
"SmallImageText" : "Reeeeee" ,
"Button1" : "Click Me" ,
"Url1" : "https://blobby.ml" ,
"Button2" : "Click Me" ,
"Url2" : "https://github.com/BlobbyDev/Discord-Rich-Presence" ,
"State" : "You Suck" ,
"Details" : "Hey Normies"
}
看起来像这样(这只是一个示例,您可以更改为您想要的任何东西): -
加入我们的Discord服务器,获得额外的支持并闲逛!