Add mentionable to role objects (#358)

This commit is contained in:
Manuel Kraus
2016-05-21 18:20:32 +02:00
committed by abalabahaha
parent 48595ddd19
commit d2f0f4993e
5 changed files with 10 additions and 4 deletions

View File

@@ -1117,7 +1117,8 @@ var InternalClient = (function () {
hoist: data.hoist || role.hoist,
name: data.name || role.name,
position: data.position || role.position,
permissions: role.permissions || 0
permissions: role.permissions || 0,
mentionable: 'mentionable' in data ? data.mentionable : role.mentionable
};
if (data.permissions) {

View File

@@ -37,6 +37,7 @@ var Role = (function () {
this.color = data.color || 0;
this.server = server;
this.client = client;
this.mentionable = data.mentionable || false;
}
Role.prototype.serialise = function serialise(explicit) {