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服務器,獲得額外的支持並閒逛!