mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(PermissionOverwriteManager): Correct @returns of delete (#6632)
This commit is contained in:
@@ -150,7 +150,7 @@ class PermissionOverwriteManager extends CachedManager {
|
||||
* Deletes permission overwrites for a user or role in this channel.
|
||||
* @param {UserResolvable|RoleResolvable} userOrRole The user or role to delete
|
||||
* @param {string} [reason] The reason for deleting the overwrite
|
||||
* @returns {GuildChannel}
|
||||
* @returns {Promise<GuildChannel>}
|
||||
*/
|
||||
async delete(userOrRole, reason) {
|
||||
const userOrRoleId = this.channel.guild.roles.resolveId(userOrRole) ?? this.client.users.resolveId(userOrRole);
|
||||
|
||||
Reference in New Issue
Block a user