mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 22:21:17 +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
|
||||
|
||||
InternalClient.prototype.setChannelTopic = function setChannelTopic(chann) {
|
||||
InternalClient.prototype.setChannelTopic = function setChannelTopic(channel) {
|
||||
var topic = arguments.length <= 1 || arguments[1] === undefined ? "" : arguments[1];
|
||||
|
||||
topic = topic || "";
|
||||
|
|
|
|||
|
|
@ -1302,7 +1302,7 @@ export default class InternalClient {
|
|||
}
|
||||
|
||||
//def setChannelTopic
|
||||
setChannelTopic(chann, topic = "") {
|
||||
setChannelTopic(channel, topic = "") {
|
||||
topic = topic || "";
|
||||
|
||||
return this.updateChannel(channel, {topic: topic});
|
||||
|
|
|
|||
Loading…
Reference in a new issue