OBJECT

UserSelfBitsBadge

UserSelfBitsBadge contains the current user's badge tier in a channel and progress toward the next tier. NOTE: should probably have been named CurrentUserBitsBadge.

link GraphQL Schema definition

1type UserSelfBitsBadge {
2
3# current is the highest bits chat badge the authenticated user has achieved in
4# this channel.
5# If a badge tier is disabled after being earned it will still appear here until
6# the next tier is earned.
7# If the user hasn't earned any bits badges yet this will be null.
8current: Badge
9
10id: ID!
11
12# next is the next chat badge the authenticated user can earn in this channel.
13# If this is null then there are no higher tiers to earn.
14next: Badge
15
16# nextBits is the bits value of the next chat badge the authenticated user can
17# earn in this channel.
18# If this is null then there are no higher tiers to earn.
19nextBits: Int
20
21# progress is the fraction of the way the user is toward the next badge tier
22# [0.0-1.0).
23# If `next` is null this will be zero.
24progress: Float!
25
26# tierNotification represents a notification sent to a user when they have
27# achieved
28# a new bits badge in a channel. Used to send a special message.
29# If no notification is pending this will be null.
30tierNotification: BitsBadgeTierNotification
31
32# totalBits is the number of bits the authenticated user has used in this channel.
33totalBits: Int!
34
35}