-
-
Save kegsay/9421cd266e6815835ca1ff3ca036aac3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// botClient is a MatrixClient with the bot credentials | |
var sl = new StateLookup({ | |
client: botClient, | |
eventTypes: ["m.room.member"] | |
}); | |
sl.trackRoom("!sfuhweiufhweuif:localhost").then(function() { | |
var memberEvent = sl.getState("!sfuhweiufhweuif:localhost", "m.room.member", "@someuser:localhost"); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment