blob: 90a706315fb07a0a9950f0ca9a7b749f2cf275cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
'use strict';
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;
|