Created
February 18, 2016 19:07
-
-
Save kwhinnery/769aee684c13d895914a to your computer and use it in GitHub Desktop.
This file contains 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
var channel = client.channel('uniqueName'); | |
channel.listMessages().then(function(messages) { | |
console.log(messages); | |
}).catch(function(err) { | |
console.log('whoops! I dont have access to this channel'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment