[Version references refer to the API version]
API update
As stated here the update is now live. The API will now send back a JSON response so what you will need to do is
HttpService:JSONDecode()
the result. An example is provided below to help you adapt your code.
local HttpService = game:GetService("HttpService")
local NRTD = require(pathToTheModule)
local result = HttpService:JSONDecode(NRTD:GetUserAsync("username", "guildId", "token"))
local found = result.found
if found then
--Give 100 coins
else
--Do something else
end
NOTE:
This update has only affected the main route (https://n-rtd-api-production.up.railway.app/), the other routes for bind and unbind requests remain unchanged.
You should update your code as soon as possible as now just doing
if result then
can be dangerous as it will always be true.