-
-
Save BrightnBubbly/ccf4d08840b2b0aa2017f396b0692566 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
// [...] | |
const to_username = this.chat.email.replace(/[@\.]/g, '_') | |
// Initialize the channel, and create a one to one channel | |
const channel = this.client.channel('messaging', { | |
name: 'Awesome channel', | |
members: [this.username, to_username] | |
}); | |
this.channel = channel | |
// [...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment