Fixed Guild Role Delete Handling

This commit is contained in:
Amish Shah
2016-08-22 22:45:02 +01:00
parent c96ecec24c
commit ddd3ea9727
2 changed files with 7 additions and 1 deletions

View File

@@ -88,6 +88,12 @@ class Message {
* @type {String}
*/
this.id = data.id;
/**
* A map of roles mentioned in the message, the key is the role ID.
* @type {Map<String, Role>}
*/
this.roleMentions = new Map();
for (const mention of data.mentions) {
let user = this.client.users.get(mention.id);
if (user) {