Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly
Last active April 9, 2020 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrightnBubbly/ccf4d08840b2b0aa2017f396b0692566 to your computer and use it in GitHub Desktop.
Save BrightnBubbly/ccf4d08840b2b0aa2017f396b0692566 to your computer and use it in GitHub Desktop.
// [...]
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