Export

ChannelOptions

interface ChannelOptions {
    maxRolesAssigned?: number;
    message: {
        id?: string;
        options: MessageOptions;
    };
    rolesToEmojis: RoleToEmojiData[];
    selectMenu?: SelectMenuOptions;
}

Properties

maxRolesAssigned?: number

The maximum number of roles which can be assigned to a single user.

message: {
    id?: string;
    options: MessageOptions;
}

Data about the message.

Type declaration

  • Optional id?: string

    The message id.

  • options: MessageOptions

    The content and type of the message sent in the registered channel.

rolesToEmojis: RoleToEmojiData[]

The list of role-emoji pairs to add as reactions to the message. A maximum of 25 role-emoji pairs are taken when using Discord components.

selectMenu?: SelectMenuOptions

Options for the select menu (and whether to use it or not).