How to get a list (array) of channel users

Posted in General by Aldar Sun Aug 13 2017 21:33:30 GMT+0000 (UTC)·Viewed 216 times

I am trying to make a simple bot that could "ship" users, for which I need to get a collection of all usernames from a channel. So far, I was trying the "getRecipientsAttribute" method of the channel object. It is supposed to return a modified collection object, but upon calling "toArray()", it... doesn't return anything to iterate. Am I getting someting wrong? Thanks!
Markdown is allowed