
## [1.3.3](https://github.com/ZynerOrg/xyter/compare/v1.3.2...v1.3.3) (2022-12-13) ### Bug Fixes * add custom semrel git ([c07befe
](c07befe678
))
8 lines
336 B
JavaScript
8 lines
336 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = (interaction, permission) => {
|
|
if (!interaction.memberPermissions)
|
|
throw new Error("Could not check user for permissions");
|
|
if (!interaction.memberPermissions.has(permission))
|
|
throw new Error("Permission denied");
|
|
};
|