diff --git a/src/Client/Client.js b/src/Client/Client.js index 42b63f3b..a00ee4fc 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 1a42b8c6..58c1887c 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 15ebfeeb..5165f4a7 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(){