Skip to content

Commit

Permalink
"added import in the module check if user is admin"
Browse files Browse the repository at this point in the history
  • Loading branch information
Josee9988 committed Jun 23, 2021
1 parent ee2dc2d commit c216cb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/checkIfUserIsAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @return boolean true|false True if the user is admin, otherwise false.
*/
import {Message} from "discord.js";
import permissionErrorHandler from "../errors/permission-error-handler";

export default function checkIfUserIsAdmin(message: Message): boolean {
if (message.member.hasPermission("ADMINISTRATOR")) {
Expand Down

0 comments on commit c216cb1

Please sign in to comment.