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(){