@urth/metatell-sdk - v0.1.0
    Preparing search index...

    Variable userConst

    user: {
        get id(): string | undefined;
        changeAvatar(avatarId: string): void;
        setMovementEnabled(enabled: boolean): void;
    } = ...

    ユーザー情報へのアクセスを提供するオブジェクト

    Type Declaration

    • get id(): string | undefined

      現在のユーザーID

      import { user } from "@urth/metatell-sdk";

      const userId = user.id;
    • changeAvatar: function
      • 現在のユーザーのアバターを変更する

        Parameters

        • avatarId: string

          新しいアバターID

        Returns void

        import { user } from "@urth/metatell-sdk";

        user.changeAvatar("your-avatar-id");
    • setMovementEnabled: function
      • 現在のユーザーの移動可否を変更する

        Parameters

        • enabled: boolean

          true の場合は移動を許可し、false の場合は移動を禁止する

        Returns void

        import { user } from "@urth/metatell-sdk";

        user.setMovementEnabled(false);