Represents a file message params.

interface FileMessageCreateParams {
    appleCriticalAlertOptions?: AppleCriticalAlertOptions;
    customType?: string;
    data?: string;
    file?: FileCompat;
    fileName?: string;
    fileSize?: number;
    fileUrl?: string;
    isPinnedMessage?: boolean;
    isReplyToChannel?: boolean;
    mentionedMessageTemplate?: string;
    mentionedUserIds?: string[];
    mentionedUsers?: User[];
    mentionType?: MentionType;
    message?: string;
    metaArrays?: MessageMetaArray[];
    mimeType?: string;
    parentMessageId?: number;
    pushNotificationDeliveryOption?: PushNotificationDeliveryOption;
    thumbnailSizes?: ThumbnailSize[];
}

Hierarchy (view full)

Properties

appleCriticalAlertOptions?: AppleCriticalAlertOptions

The apple critical alert options of the message.

customType?: string

The custom type of the message.

data?: string

The data of the message.

file?: FileCompat

The file object of the message.

fileName?: string

The file's name of the message.

fileSize?: number

The file's size of the message.

fileUrl?: string

The file's url of the message.

isPinnedMessage?: boolean

Whether the message should be pinned to the channel. (default: false)

isReplyToChannel?: boolean

Whether the message should also be sent to the channel. (default: false)

mentionedMessageTemplate?: string

The mentioned message template.

mentionedUserIds?: string[]

The mentioned user IDs of the message.

mentionedUsers?: User[]

The mentioned users of the message.

mentionType?: MentionType

The mention type of the message. (default: MentionType.USERS).

message?: string

The message text of the message.

metaArrays?: MessageMetaArray[]

The meta arrays of the message.

mimeType?: string

The file's mime type of the message.

parentMessageId?: number

The parent message ID of the message.

pushNotificationDeliveryOption?: PushNotificationDeliveryOption

The push notification delivery option user of the message.

thumbnailSizes?: ThumbnailSize[]

The file's thumbnail sizes of the message.