@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
15 lines • 616 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BotOwnerSuppressor = void 0;
const SuppressorType_1 = require("../constants/SuppressorType");
class BotOwnerSuppressor {
constructor() {
this.suppressor = SuppressorType_1.SuppressorType.BOT_OWNER;
}
async suppress(ctx, option) {
const message = await ctx.formatTranslation('BENTOCORD_SUPPRESSOR_BOT_OWNER', {}, 'You are not a bot owner.');
return (await ctx.isBotOwner()) ? false : message;
}
}
exports.BotOwnerSuppressor = BotOwnerSuppressor;
//# sourceMappingURL=BotOwnerSuppressor.js.map