Removed Client#setChannelNameAndTopic and any relevant references (fixed). (#464)

* Removed undeed functions relating to channelName and channelTopic.

* Compiled the last commit.
This commit is contained in:
Jesse Bryan
2016-07-13 20:05:44 -05:00
committed by abal
parent f49f1ab3c8
commit 45d61f24db
9 changed files with 28 additions and 67 deletions

21
test/lib-test.js Normal file → Executable file
View File

@@ -106,16 +106,27 @@ function makeChannel() {
function editChannel() {
section("Channel Manipulation");
client.setChannelNameAndTopic(channel, "testing", "a testing channel - temporary").then(() => {
client.setChannelName(channel, "testing").then(() => {
if (channel.name !== "testing" || channel.topic !== "a testing channel - temporary") {
err("channel not updated");
if (channel.name !== "testing") {
err("channel name not updated");
return;
}
pass("channel name and topic updated");
pass("channel name updated");
sendMsg();
client.setChannelTopic(channel, "a testing channel - temporary").then(() => {
if (channel.topic !== "a testing channel - temporary"){
err("channel topic not updated");
return;
}
pass("channel topic updated");
sendMsg();
});
}).catch(e => {
err("error editting channel: " + e);