Deprecate all the things

This commit is contained in:
Amish Shah
2017-04-29 21:09:53 +01:00
parent b0a3528411
commit c40252381b
5 changed files with 41 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
const Snowflake = require('../util/Snowflake');
const Permissions = require('../util/Permissions');
const util = require('util');
/**
* Represents a role on Discord
@@ -350,4 +351,8 @@ class Role {
}
}
Role.prototype.hasPermissions = util
.deprecate(Role.prototype.hasPermissions,
'Role#hasPermissions is deprecated - use Role#hasPermission instead, it now takes an array');
module.exports = Role;