mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Fix misnamed variable in setChannelTopic (#403)
This commit is contained in:
@@ -1512,7 +1512,7 @@ var InternalClient = (function () {
|
|||||||
|
|
||||||
//def setChannelTopic
|
//def setChannelTopic
|
||||||
|
|
||||||
InternalClient.prototype.setChannelTopic = function setChannelTopic(chann) {
|
InternalClient.prototype.setChannelTopic = function setChannelTopic(channel) {
|
||||||
var topic = arguments.length <= 1 || arguments[1] === undefined ? "" : arguments[1];
|
var topic = arguments.length <= 1 || arguments[1] === undefined ? "" : arguments[1];
|
||||||
|
|
||||||
topic = topic || "";
|
topic = topic || "";
|
||||||
|
|||||||
@@ -1302,7 +1302,7 @@ export default class InternalClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//def setChannelTopic
|
//def setChannelTopic
|
||||||
setChannelTopic(chann, topic = "") {
|
setChannelTopic(channel, topic = "") {
|
||||||
topic = topic || "";
|
topic = topic || "";
|
||||||
|
|
||||||
return this.updateChannel(channel, {topic: topic});
|
return this.updateChannel(channel, {topic: topic});
|
||||||
|
|||||||
Reference in New Issue
Block a user