@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
12 lines • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsTextableChannel = void 0;
const ChannelTypes_1 = require("../commands/constants/ChannelTypes");
function IsTextableChannel(channel) {
const cast = channel;
if (!cast || typeof cast.type !== 'number')
return false;
return ChannelTypes_1.AllTextChannelTypes.includes(cast.type);
}
exports.IsTextableChannel = IsTextableChannel;
//# sourceMappingURL=IsTextableChannel.js.map