#fetch problem help

13 messages · Page 1 of 1 (latest)

wintry heath

User#username doesnt return a promise so making your then function async for that is pointless

slender wind

Hope you know that the return statement in the .then callback doesnt return for the main function itself, it returns for the callback

I'm basically saying the return statement in the callback is useless and so is that whole part of the code, you're fetching the user and doing nothing afterward

echo kestrel
slender wind
echo kestrel
slender wind

Explain

echo kestrel
wintry heath

fetching returns a promise

echo kestrel
slender wind Explain
return client.users.fetch(user.id).then((us) => { 
        const uss = us.username;
        console.log(uss) 

     })
slender wind