Best way to retrieve users in a room

I’m looking to develop an app that gets a list of all users in a room whenever you issue the slash command and does something with those users (in my case - need to get the email addresses and “invite” them to a meeting).

I’ve got a working app deployed in my dev environment and the slash commands are executing as expected, but when I try to call room.userIds I get an undefined result and when I try to call room.usernames (which I understand has been deprecated for a while) I get the list of names I expect but I can’t do anything with the list without getting an error: “Cannot await without a Fiber”

Is there a ‘best practice’ to get a list of users when a slash command is issued that I could follow along with?

Thanks for the help.