Validate invite if possible

This commit is contained in:
abalabahaha
2016-01-03 11:14:17 -08:00
parent 718f0b9543
commit 2a00064646
4 changed files with 17 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ export default class Invite {
constructor(data, chan, client){
this.maxAge = data.max_age;
this.code = data.code;
if (data.chan) {
if (chan) {
this.channel = chan;
this.server = chan.server;
} else {