API of ReviewdDB(formerly known as User and Server reviews)
Returns list of reviews of that user
[{"id":225528,"star":-1,"senderuserid":3775,"comment":"This is a test review","reviewtype":0,"isSystemMessage":false,"senderdiscordid":"287555395151593473","username":"mantikafasi#4444","profile_photo":"https://cdn.discordapp.com/avatars/287555395151593473/c4b7353e759983f5a3d686c7937cfab7.png?size=128","badges":[{"badge_name":"Admin","badge_icon":"https://cdn.discordapp.com/emojis/1040004306100826122.gif?size=128","redirect_url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ","badge_type":0,"badge_description":"This user is an admin of ReviewDB."}]}]id : id of review, used for reporting and deleting
star : unused for now (probably forever)
senderuserid : User id of person who sent the review
comment: review of the user
username : username
profile_photo: url of users profile photo who sent the review
badges[ ] : List of badges user has
redirect_url: the url user will be redirected when clicked into badge
Reports the specific user
{"token" : "akd3qegd","reviewid":123}returns "Successfully Reported Review" if successful, error string if not
Adds review to database
Example Body Json
{"userid":1293812321,"token":"asdasdasd","comment":"this is pog","reviewtype":1}userid : discordid of user thats been reviewed
token : token of user that is reviewing
comment: yes
reviewtype: reviewtype of review, 0 means its a user review and 1 means its server review
"Added your review" if review is successfully added , "Updated your review" if review is updated , or error string if there is a error
Reports the specific user
{"token" : "akd3qegd","reviewid":123} returns "Successfully Reported Review" if successful, error string if not
To authorize you have 2 options
Get autorization code within discord via oauth2 modal and make a request to /URAuth endpoint with the code and client mod you are using
/URAuth?code=oauthcodeyougot&clientMod=aliucord
Redirect users to https://discord.com/api/oauth2/authorize?client_id=915703782174752809&redirect_uri=https%3A%2F%2Fmanti.vendicated.dev%2FURauth&response_type=code&scope=identify
After authorizing if authorization is successful it will redirect to
/receiveToken/<token>
and show token to user
if some error happens in authorization user will be redirected to /error
Returns the stupidity of user. Returns integer if found, "None" if not