mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix misnamed variable in setChannelTopic (#403)
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user