Initial commit

This commit is contained in:
March 7th
2022-03-19 17:37:45 +07:00
commit ac49705f3e
282 changed files with 39756 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
'use strict';
const BaseGuild = require('./BaseGuild');
const PermissionsBitField = require('../util/PermissionsBitField');
/**
* A partial guild received when using {@link GuildManager#fetch} to fetch multiple guilds.
* @extends {BaseGuild}
*/
class OAuth2Guild extends BaseGuild {
constructor(client, data) {
super(client, data);
/**
* Whether the client user is the owner of the guild
* @type {boolean}
*/
this.owner = data.owner;
/**
* The permissions that the client user has in this guild
* @type {Readonly<PermissionsBitField>}
*/
this.permissions = new PermissionsBitField(BigInt(data.permissions)).freeze();
}
}
module.exports = OAuth2Guild;