Package com.github.twitch4j.common.util
Class TwitchUtils
java.lang.Object
com.github.twitch4j.common.util.TwitchUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<CommandPermission>static Set<CommandPermission>getPermissionsFromTags(@NonNull Map<String, Object> tags, @NonNull Map<String, String> badges, String userId, Collection<String> botOwnerIds) static Set<CommandPermission>getPermissionsFromTags(Map<String, Object> tags) parseBadges(String raw) Parse Badges from raw list
-
Field Details
-
ANONYMOUS_GIFTER
The account used by twitch to signify an anonymous subscription gifter- See Also:
-
ANONYMOUS_CHEERER
The account used by twitch to signify an anonymous cheerer
-
-
Constructor Details
-
TwitchUtils
public TwitchUtils()
-
-
Method Details
-
getPermissionsFromTags
-
getPermissionsFromTags
-
getPermissionsFromTags
-
parseBadges
Parse Badges from raw list- Parameters:
raw- The raw list of tags.- Returns:
- A key-value map of the tags.
-