discord.js
Version:
A powerful library for interacting with the Discord API
21 lines (17 loc) • 458 B
JavaScript
;
const BaseSelectMenuComponent = require('./BaseSelectMenuComponent');
/**
* Represents a channel select menu component
* @extends {BaseSelectMenuComponent}
*/
class ChannelSelectMenuComponent extends BaseSelectMenuComponent {
/**
* The options in this select menu
* @type {?(ChannelType[])}
* @readonly
*/
get channelTypes() {
return this.data.channel_types ?? null;
}
}
module.exports = ChannelSelectMenuComponent;