I am trying to use the post request and I am having trouble. https://users.roblox.com/docs#!/Users/post_v1_usernames_users When I do stuffs.data I get undefined. WHat is the correct way to add data to a post request? I have tried looking it up just I don't get anything useful
const data2 = {
"usernames": [
username
],
"excludeBannedUsers": true
}
const stuffs = axios({
method: 'post',
url: 'https://users.roblox.com/v1/usernames/users',
data: data2
})
Solved: It ended up being I did the await in the wrong spot, when I changed it it was able to return a value.