mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
Deprecate all the things
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user