mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Removed Client#setChannelNameAndTopic and any relevant references (fixed). (#464)
* Removed undeed functions relating to channelName and channelTopic. * Compiled the last commit.
This commit is contained in:
6
src/Client/Client.js
Normal file → Executable file
6
src/Client/Client.js
Normal file → Executable file
@@ -1098,12 +1098,6 @@ export default class Client extends EventEmitter {
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def setChannelNameAndTopic
|
||||
setChannelNameAndTopic(channel, name, topic, callback = (/*err, {}*/) => { }) {
|
||||
return this.internal.setChannelNameAndTopic(channel, name, topic)
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def setChannelPosition
|
||||
setChannelPosition(channel, position, callback = (/*err, {}*/) => { }) {
|
||||
return this.internal.setChannelPosition(channel, position)
|
||||
|
||||
8
src/Client/InternalClient.js
Normal file → Executable file
8
src/Client/InternalClient.js
Normal file → Executable file
@@ -1416,14 +1416,6 @@ export default class InternalClient {
|
||||
return this.updateChannel(channel, {name: name});
|
||||
}
|
||||
|
||||
//def setChannelNameAndTopic
|
||||
setChannelNameAndTopic(channel) {
|
||||
name = name || "unnamed-channel";
|
||||
topic = topic || "";
|
||||
|
||||
return this.updateChannel(channel, {name: name, topic: topic});
|
||||
}
|
||||
|
||||
//def setChannelPosition
|
||||
setChannelPosition(channel, position) {
|
||||
position = position || 0;
|
||||
|
||||
Reference in New Issue
Block a user