Added guildChannel.createInvite();

This commit is contained in:
Amish Shah
2016-08-28 20:32:32 +01:00
parent 9f1475f358
commit ba3d104619
6 changed files with 219 additions and 3 deletions

View File

@@ -0,0 +1,45 @@
/*
{ splash: null,
id: '123123123',
icon: '123123123',
name: 'name' }
*/
/**
* Represents a Guild that the client only has limited information for - e.g. from invites.
*/
class PartialGuild {
constructor(client, data) {
/**
* The client that instantiated this PartialGuild
* @type {Client}
*/
this.client = client;
this.setup(data);
}
setup(data) {
/**
* The hash of the guild splash image, or null if no splash (VIP only)
* @type {?String}
*/
this.splash = data.splash;
/**
* The ID of this guild
* @type {String}
*/
this.id = data.id;
/**
* The hash of this guild's icon, or null if there is none.
* @type {?String}
*/
this.icon = data.icon;
/**
* The name of this guild
* @type {String}
*/
this.name = data.name;
}
}
module.exports = PartialGuild;