Skip to content

Instantly share code, notes, and snippets.

@janovak
janovak / gist:06664d9d3c1443d697ca07c602a8edfc
Created March 27, 2024 05:47
Add lock to guard writing to connection
diff --git a/twitchAPI/chat/__init__.py b/twitchAPI/chat/__init__.py
index d1b7ce8..b36f089 100644
--- a/twitchAPI/chat/__init__.py
+++ b/twitchAPI/chat/__init__.py
@@ -371,7 +371,7 @@ class HypeChat:
self.currency: str = parsed['tags'].get('pinned-chat-paid-currency')
"""The ISO 4217 alphabetic currency code the user has sent the Hype Chat in."""
self.exponent: int = int(parsed['tags'].get('pinned-chat-paid-exponent'))
"""Indicates how many decimal points this currency represents partial amounts in.
Decimal points start from the right side of the value defined in :const:`~twitchAPI.chat.HypeChat.amount`"""