Closed JamesonRGrieve closed 5 years ago
you need to put +server.members[member].status
inside the parentheses to output the result of the string concatenation
Wow I actually feel really stupid now. Thanks for the second pair of eyes. I need to stop coding when I'm exhausted haha.
while you're here, feel free to join the help server: https://discord.gg/0MvHMfHcTKVVmIGP
I've scoured the docs and for the life of me I can't figure out how to pull the roles list from the members of a server.
Upon viewing the typescript file I determined what I believed to be the correct string of properties, but it doesn't seem to be working.
produces the output:
I've been trying for hours fiddling around with various permutations and reading the docs and various posts and I haven't been able to get those values to resolve for some reason. I may be missing something obvious as I'm a bit tired but I can't figure it out.
Any input is greatly appreciated.
P.S. The Info() method is a quick method I wrote that will output to both the winston console and optionally display a response in the server.