@mugtungshing/core
    Preparing search index...

    Class Identifier

    创建黄历统一标识码。 避免了随机数种子与用户直接交互。

    已有 UUID / 黄历码 / 或从伪随机数种子生成一个统一标识码。 当作为伪随机数种子时需要大于 5 位字符。 需要对每个用户独立唯一,且无法通过用户 ID 推出。

    Telegram 示例:

    new Identifier(`${id}$${BOT_TOKEN}`)
    

    黄历统一标识码。

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bagua: BaguaId
    uuid: UUID

    Methods

    • Parameters

      • style: "uuid" | "bagua" = 'uuid'

      Returns string