mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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:
21
test/lib-test.js
Normal file → Executable file
21
test/lib-test.js
Normal file → Executable file
@@ -106,16 +106,27 @@ function makeChannel() {
|
||||
function editChannel() {
|
||||
section("Channel Manipulation");
|
||||
|
||||
client.setChannelNameAndTopic(channel, "testing", "a testing channel - temporary").then(() => {
|
||||
client.setChannelName(channel, "testing").then(() => {
|
||||
|
||||
if (channel.name !== "testing" || channel.topic !== "a testing channel - temporary") {
|
||||
err("channel not updated");
|
||||
if (channel.name !== "testing") {
|
||||
err("channel name not updated");
|
||||
return;
|
||||
}
|
||||
|
||||
pass("channel name and topic updated");
|
||||
pass("channel name updated");
|
||||
|
||||
sendMsg();
|
||||
client.setChannelTopic(channel, "a testing channel - temporary").then(() => {
|
||||
|
||||
if (channel.topic !== "a testing channel - temporary"){
|
||||
err("channel topic not updated");
|
||||
return;
|
||||
}
|
||||
|
||||
pass("channel topic updated");
|
||||
|
||||
sendMsg();
|
||||
|
||||
});
|
||||
|
||||
}).catch(e => {
|
||||
err("error editting channel: " + e);
|
||||
|
||||
Reference in New Issue
Block a user