OBJECT

Badge

Communicates a user's status in chat.

link GraphQL Schema definition

1type Badge {
2
3# Identifies an action to trigger when this badge is clicked.
4clickAction: BadgeClickAction @deprecated( reason: "Should use onClickAction instead" )
5
6# The URL to redirect to if the badge's onClickAction is VISIT_URL.
7clickURL: String
8
9# A localized, human-friendly description of the badge.
10# Defaults to English if no translation exists for the requested locale.
11description: String!
12
13# The badge's unique identifier.
14id: ID!
15
16# A URL to the badge's image.
17imageURL(size: BadgeImageSize): String!
18
19# Identifies an action to trigger when this badge is clicked.
20onClickAction: BadgeClickAction
21
22# Information about the user's relationship to this badge.
23self: BadgeSelfEdge
24
25# The identifier of the set which this badge belongs (e.g. "subscriber").
26setID: ID!
27
28# A localized, human-friendly title for the badge.
29# Defaults to English if no translation exists for the requested locale.
30title: String!
31
32# The badge's associated broadcaster.
33# Returns null if this is a global badge.
34user: User
35
36# The badge's version (e.g. "1mo").
37version: String!
38
39}