mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Validate invite if possible
This commit is contained in:
@@ -10,7 +10,7 @@ var Invite = (function () {
|
||||
|
||||
this.maxAge = data.max_age;
|
||||
this.code = data.code;
|
||||
if (data.chan) {
|
||||
if (chan) {
|
||||
this.channel = chan;
|
||||
this.server = chan.server;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user