mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +00:00
Fix misnamed variable in setChannelTopic (#403)
This commit is contained in:
parent
2ac679c169
commit
2bd7d9dc24
2 changed files with 2 additions and 2 deletions
|
|
@ -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});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue