Pawnote
    Preparing search index...

    Function newDiscussionRecipients

    • Returns a list of possible recipients when creating a discussion.

      This step is required before creating a discussion. It allows to know who can be the recipient of the discussion.

      Parameters

      • session: SessionHandle

        The current session handle.

      • kind: EntityKind

        The kind of entity to create a discussion with. Only Teacher, Student and Personal are allowed.

      Returns Promise<
          Readonly<
              {
                  function?: Readonly<{ id: string; name: string }>;
                  id: string;
                  isPrincipal: boolean;
                  kind: 3 | 4 | 34;
                  name: string;
                  subjects: Readonly<
                      {
                          id: string;
                          name: string;
                          sub: Readonly<{ from: string; id: string; name: string }>[];
                      },
                  >[];
              },
          >[],
      >