mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Validate invite if possible
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user