Add Queries for Replit Achievement Class
rayhanadev opened this issue ยท comments
I don't quite know if Replit Achievements went defunct but I know they disappeared. In any case the GraphQL query is apparently still there, so we can use it.
{
achievements {
title
description
}
}
Returns: List of all Achievements
{
"data": {
"achievements": [
{
"title": "Mask Off",
"description": "Change your profile picture and bio"
},
{
"title": "Repl.it Contributor",
"description": "Submit good posts on Repl Talk"
},
{
"title": "Repl.it Guide",
"description": "Have your comments be accepted as answers on someone's Repl Talk post"
},
{
"title": "Unstoppable Repler",
"description": "This is a streak that shows how many days in a row you have coded on Repl.it"
},
{
"title": "Multiplayer",
"description": "Join some new multiplayer repls and collaborate on coding projects"
},
{
"title": "Repl.it Famous",
"description": "Have a Repl Talk post trend on the Repl.it home page"
},
{
"title": "1 Year Club",
"description": "Be an active Repl.it user for over a year"
}
]
}
}
{
achievement(id: 1) {
title
description
isLeveled
level
showProgressBar
progressBarStatus
}
}
Returns: A Specific Achievement
{
"data": {
"achievement": {
"title": "Mask Off",
"description": "Change your profile picture and bio",
"isLeveled": false,
"level": null,
"showProgressBar": false,
"progressBarStatus": 100
}
}
}
This has been shifted over to the next minor release of ReplAPI.it and will not be featured in the major update.
I'm going to close this for now because Replit no longer uses achievements. In the future if achievements are brought back this issue will be reopened.