โครงการนี้ทำโดยใช้แพ็คเกจชื่อ discord-rpc
คุณสามารถดูรายละเอียดได้โดยคลิกที่นี่หากคุณต้องการรับเวอร์ชันที่ง่ายขึ้นของสถานะนี้ แต่โปรดทราบว่าไม่มีคุณสมบัติปุ่มเพียงแสดงภาพขนาดใหญ่และภาพขนาดเล็กหากคุณต้องการสิ่งนั้น จากนั้นคลิกที่นี่
node.js
รหัสสตูดิโอภาพ
กระตวน
ความไม่ลงรอยกัน
◙ไปที่พอร์ทัลนักพัฒนา Discord โดยคลิกที่นี่จากนั้นไปที่มุมซ้ายบนของหน้าจอของคุณดูสร้างแอปพลิเคชันแล้วตั้งชื่อ
◙จากนั้นคลิกไปที่แอปพลิเคชันภายใต้หมวดหมู่ Rich Presence
คุณจะเห็น Art Assets
คลิกไปที่นั้น
◙ตั้งค่าภาพหน้าปกเป็นภาพ lage ของสถานะของคุณ
◙เลื่อนลงคลิก "เพิ่มสินทรัพย์" จากนั้นเลือกภาพที่คุณต้องการให้เป็นภาพขนาดใหญ่และภาพขนาดเล็กยังตรวจสอบให้แน่ใจว่าพวกเขามีขนาด 512 x 512
◙ไปที่เทอร์มินัลของตัวแก้ไขประเภท npm init -y
หลังจากที่คุณได้รับ package.json ประเภทไฟล์ npm install discord-rpc
จากนั้นส่วนที่เหลือของรายละเอียดการเติมจะอยู่ใน index.js
ไฟล์ซึ่งเป็นไฟล์หลักของคุณ
◙หลังจากกรอกรายละเอียดและสิ่งของไปที่เทอร์มินัลและพิมพ์ node index.js
เพื่อเรียกใช้โฟลเดอร์
หมายเหตุ: เรียกใช้โฟลเดอร์บน Command Prompt
หรือ Powershell
หากคุณใช้สถานะ Discord ใน Visual Studio Code
ไปที่ 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 ของเราเพื่อรับการสนับสนุนเพิ่มเติมและยังออกไปเที่ยวด้วย !!