يتم صنع هذا المشروع باستخدام حزمة تسمى discord-rpc
يمكنك عرض تفاصيلها من خلال النقر هنا إذا كنت تريد الحصول على الإصدار الأسهل من هذا الوجود ولكن لاحظ أنه لا يحتوي على ميزة أزرار فقط تعرض صورة كبيرة وصورة صغيرة إذا كنت تريد ذلك ثم انقر هنا
node.js
رمز الاستوديو البصري
غيت
خلاف
◙ انتقل إلى Portal Discord Developer من خلال النقر هنا ثم انتقل إلى الزاوية العلوية اليسرى من الشاشة انظر إنشاء تطبيق ثم قم بتسميته.
◙ ثم انقر على التطبيق ضمن فئة Rich Presence
سترى Art Assets
انقر على ذلك.
◙ اضبط صورة الغلاف كصورة Lage لوجودك.
◙ قم بالتمرير لأسفل انقر فوق "إضافة أصول" ثم اختر صورة تريد تقديمها كصورة كبيرة وصورة صغيرة أيضًا تأكد من أنها على الأقل بحجم 512 × 512.
◙ انتقل إلى محطة Type من نوع المحرر npm init -y
بعد الحصول على package.json نوع ملف npm install discord-rpc
ثم بقية تفاصيل التعبئة موجودة في ملف File 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 للحصول على دعم إضافي وأيضًا للتسكع !!