Closed theLine closed 8 years ago
update()
is an internal function. It should really have been called _update()
, but you can deduce that also from the fact that it hasn't been documented.
That function updates the local Channel
instance based on data coming from the server - it won't alter the server state.
There is no convenience method for renaming the channel, but I believe following would work.
client.connection.sendMessage( 'ChannelState', {
channel_id: channel.id,
name: 'new name'
});
Thanks for your quick response!
This worked as you said. =)
I'd like to rename a channel. Basically I'm doing this:
But for some reason the channel won't update its name.
P.S.: I nulled the other properties because I got the following error: