Class SentMessage

Hierarchy (view full)

Constructors

Properties

#amountOfRecipients: number
#client: Pronote
#content: string
#created: Date
#id: string
#messagesOverview: MessagesOverview
#partialVisibility: boolean
#receiver?: MessageRecipient
#replyMessageID: string
#transferredMessages: TransferredMessage[] = []

Accessors

  • get amountOfRecipients(): number
  • Returns number

    Remark

    The author is also counted as a recipient.

    Example

    // In the situation when there's you and a teacher.
    message.amountOfRecipients === 2; // 1 (you) + 1 (teacher)
  • get partialVisibility(): boolean
  • true when only some people can see the message.

    Returns boolean

Methods

  • Parameters

    • content: string

    Returns Promise<void>

  • Parameters

    • content: string
    • includeParentsAndStudents: boolean = false

    Returns Promise<void>