From a89938ed01e8a2765e7c894478fc4339b5914a57 Mon Sep 17 00:00:00 2001 From: abalabahaha Date: Sat, 5 Dec 2015 10:04:00 -0800 Subject: [PATCH] setChannelTopic, not setTopic --- src/Client/Client.js | 4 ++-- src/Client/InternalClient.js | 2 +- src/Structures/TextChannel.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Client/Client.js b/src/Client/Client.js index 42b63f3b3..a00ee4fc5 100644 --- a/src/Client/Client.js +++ b/src/Client/Client.js @@ -349,8 +349,8 @@ export default class Client extends EventEmitter { } // def setTopic - setTopic(channel, topic, callback = (/*err*/) => {}) { - return this.internal.setTopic(channel, topic) + setChannelTopic(channel, topic, callback = (/*err*/) => {}) { + return this.internal.setChannelTopic(channel, topic) .then(callback, errCB(callback)); } diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index 1a42b8c63..58c1887c1 100644 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -824,7 +824,7 @@ export default class InternalClient { } //def setTopic - setTopic(chann, topic = "") { + setChannelTopic(chann, topic = "") { return this.resolver.resolveChannel(chann) .then(channel => request diff --git a/src/Structures/TextChannel.js b/src/Structures/TextChannel.js index 15ebfeebf..5165f4a79 100644 --- a/src/Structures/TextChannel.js +++ b/src/Structures/TextChannel.js @@ -19,7 +19,7 @@ export default class TextChannel extends ServerChannel{ } setTopic(){ - return this.client.setTopic.apply(this.client, reg(this, arguments)); + return this.client.setChannelTopic.apply(this.client, reg(this, arguments)); } setNameAndTopic(){