mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
Fixed invite
This commit is contained in:
@@ -644,11 +644,14 @@ var InternalClient = (function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
options = options || {};
|
if (!options) {
|
||||||
options.max_age = options.maxAge || 0;
|
options = { validate: null };
|
||||||
options.max_uses = options.maxUses || 0;
|
} else {
|
||||||
options.temporary = options.temporary || false;
|
options.max_age = options.maxAge || 0;
|
||||||
options.xkcdpass = options.xkcd || false;
|
options.max_uses = options.maxUses || 0;
|
||||||
|
options.temporary = options.temporary || false;
|
||||||
|
options.xkcdpass = options.xkcd || false;
|
||||||
|
}
|
||||||
|
|
||||||
var epoint;
|
var epoint;
|
||||||
if (chanServ instanceof Channel) {
|
if (chanServ instanceof Channel) {
|
||||||
|
|||||||
@@ -684,11 +684,14 @@ class InternalClient {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
options = options || {};
|
if(!options){
|
||||||
options.max_age = options.maxAge || 0;
|
options = {validate:null};
|
||||||
options.max_uses = options.maxUses || 0;
|
}else{
|
||||||
options.temporary = options.temporary || false;
|
options.max_age = options.maxAge || 0;
|
||||||
options.xkcdpass = options.xkcd || false;
|
options.max_uses = options.maxUses || 0;
|
||||||
|
options.temporary = options.temporary || false;
|
||||||
|
options.xkcdpass = options.xkcd || false;
|
||||||
|
}
|
||||||
|
|
||||||
var epoint;
|
var epoint;
|
||||||
if(chanServ instanceof Channel){
|
if(chanServ instanceof Channel){
|
||||||
|
|||||||
Reference in New Issue
Block a user