Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 434 Bytes

anyUserPermissions.md

File metadata and controls

14 lines (13 loc) · 434 Bytes

AnyUserPermissions

Usage

import { PermissionFlagsBits } from "discord.js"

anyUserPermissions: [PermissionFlagsBits.<Permission>]
// Example
anyUserPermissions: [PermissionFlagsBits.BanMembers]
  • The user [who ran the command] must have any one of the specified permissions to be able to execute the command else the error embed is sent.

Return Error

returnAnyUserPermissionsError: Boolean // Default: true