Closed oldramen closed 11 years ago
You can verify a userid exists by calling bot.getUserId(name)
or bot.getProfile(uid)
(https://github.com/sharedferret/Sparkle-Turntable-Bot/blob/master/commands/userinfo.js has an example of this).
Verifying a room might be harder, since the room.info
call returns an error if you're in a room with a different chatserver.
@yayramen Try something like this for verifying a room id http://i.imgur.com/sGDPWBV.png
Is there a way to verify room id's? And user id's? I tried using the addFavorite call to verify roomid's, but it just returns an error that I'm using the wrong chat server.