Make ServerChannel GuildChannel

This commit is contained in:
Amish Shah
2016-08-18 10:27:31 +01:00
parent 46e89f56c7
commit 159233059e
5 changed files with 10 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ const User = require('../User');
const DMChannel = require('../DMChannel');
const TextChannel = require('../TextChannel');
const VoiceChannel = require('../VoiceChannel');
const ServerChannel = require('../ServerChannel');
const GuildChannel = require('../GuildChannel');
class ClientDataStore extends AbstractDataStore {
constructor(client) {
@@ -85,7 +85,7 @@ class ClientDataStore extends AbstractDataStore {
killChannel(channel) {
this.remove('channels', channel);
if (channel instanceof ServerChannel) {
if (channel instanceof GuildChannel) {
channel.guild.store.remove('channels', channel);
}
}