OBJECT

User

link GraphQL Schema definition

  • type User implements Node {
  • # GraphQL ID for cache
  • id: ID!
  • # Username (blockchain username). User ID which would never change
  • username: String!
  • # Displayname of user
  • displayname: String!
  • # Avatar image url
  • avatar: URL!
  • # About section (deprecated: see "panels")
  • about: String!
  • # New About section
  • panels: [Panel!]!
  • # Registration time
  • createdAt: DateTime!
  • # Some wallet info
  • wallet: Wallet!
  • # User partner status
  • partnerStatus: PartnerStatus!
  • # Whether the user can be subscribed
  • canSubscribe: Boolean!
  • # Whether current requesting user is following the user
  • isFollowing: Boolean
  • # Whether current requesting user is subscribing the user
  • isSubscribing: Boolean
  • # The room role of current requesting user in the channel
  • myRoomRole: RoomRole
  • # Livestream of user. Null if user is offline
  • livestream: Livestream
  • # Hosting livestream of user. Null if user is not hosting
  • hostingLivestream: Livestream
  • # Role of user
  • role: Role!
  • # Followers of user
  • # Follower count could be obtained in totalCount field in User Connection
  • #
  • # Arguments
  • # first: Limit
  • # after: Cursor
  • followers(first: Int, after: String): UserConnection!
  • # Following users
  • # Following users count could be obtained in totalCount field in User Connection
  • #
  • # Arguments
  • # first: Limit
  • # after: Cursor
  • following(first: Int, after: String): UserConnection!
  • # List of pastbroadcasts of the user
  • # Total pastbroadcast count could be obtained in totalCount field in User
  • # Connection
  • #
  • # Arguments
  • # first: Limit
  • # after: Cursor
  • pastBroadcasts(first: Int, after: String): PastBroadcastConnection!
  • # The subscription setting of the streamer
  • subSetting: SubSetting
  • # Private infos
  • private: UserPrivateInfo
  • # Blockchain transactions of the user
  • #
  • # Arguments
  • # first: Limit
  • # after: Cursor
  • transactions(first: Int, after: String): TransactionConnection!
  • # Channel chat mode
  • chatMode: ChatModeType!
  • # Channel emote mode
  • emoteMode: EmoteModes!
  • # Previous chatroom messages (maximum count is 50)
  • #
  • # Arguments
  • # count:
  • chats(count: Int!): [Chat!]!
  • # Channel chat interval
  • chatInterval: Int!
  • # Banned user in channel.
  • # Only available for staff/moderator/owner
  • #
  • # Arguments
  • # first: Limit
  • # after: Cursor
  • # search: Search string
  • chatBannedUsers(first: Int, after: String, search: String): UserConnection!
  • # Moderators in channel
  • # Only available for channel owner
  • #
  • # Arguments
  • # first: Limit
  • # after: Cursor
  • # search: Search string
  • chatModerators(first: Int, after: String, search: String): UserConnection!
  • # Banned emotes list
  • chatBannedEmote: [String!]!
  • # Available emotes in channel
  • emote: AllEmotes!
  • # Ban status of user
  • banStatus: BanStatus!
  • # Whether user has deactivated
  • deactivated: Boolean!
  • # Chest info of channel
  • treasureChest: TreasureChest!
  • # Offline image of channel
  • offlineImage: String!
  • }