Skip to content

Commit 6f22455

Browse files
committed
refactor: renamed Message Fragment Metadata Objects to better reflect their purpose
1 parent e625f38 commit 6f22455

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

twitchAPI/object/eventsub.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
'GoalData', 'TopContribution', 'LastContribution', 'HypeTrainData', 'HypeTrainEndData', 'StreamOnlineData', 'StreamOfflineData',
2929
'UserAuthorizationGrantData', 'UserAuthorizationRevokeData', 'UserUpdateData', 'ShieldModeData', 'Amount', 'CharityCampaignStartData',
3030
'CharityCampaignStopData', 'CharityCampaignProgressData', 'CharityDonationData', 'ChannelShoutoutCreateData', 'ChannelShoutoutReceiveData',
31-
'ChannelChatClearData', 'ChannelChatClearUserMessagesData', 'ChannelChatMessageDeleteData', 'Badge', 'FragmentCheermote',
32-
'FragmentEmote', 'FragmentMention', 'MessageFragment', 'Message', 'AnnouncementNoticeMetadata', 'CharityDonationNoticeMetadata',
31+
'ChannelChatClearData', 'ChannelChatClearUserMessagesData', 'ChannelChatMessageDeleteData', 'Badge', 'MessageFragmentCheermote',
32+
'MessageFragmentEmote', 'MessageFragmentMention', 'MessageFragment', 'Message', 'AnnouncementNoticeMetadata', 'CharityDonationNoticeMetadata',
3333
'BitsBadgeTierNoticeMetadata', 'SubNoticeMetadata', 'RaidNoticeMetadata', 'ResubNoticeMetadata', 'UnraidNoticeMetadata',
3434
'SubGiftNoticeMetadata', 'CommunitySubGiftNoticeMetadata', 'GiftPaidUpgradeNoticeMetadata', 'PrimePaidUpgradeNoticeMetadata',
3535
'PayItForwardNoticeMetadata', 'ChannelChatNotificationData']
@@ -1079,7 +1079,7 @@ class Badge(TwitchObject):
10791079
to indicate the number of months the user has been a subscriber."""
10801080

10811081

1082-
class FragmentCheermote(TwitchObject):
1082+
class MessageFragmentCheermote(TwitchObject):
10831083
prefix: str
10841084
"""The name portion of the Cheermote string that you use in chat to cheer Bits. The full Cheermote string is the concatenation of
10851085
{prefix} + {number of Bits}. For example, if the prefix is “Cheer” and you want to cheer 100 Bits, the full Cheermote string is Cheer100.
@@ -1090,7 +1090,7 @@ class FragmentCheermote(TwitchObject):
10901090
"""The tier level of the cheermote."""
10911091

10921092

1093-
class FragmentEmote(TwitchObject):
1093+
class MessageFragmentEmote(TwitchObject):
10941094
id: str
10951095
"""An ID that uniquely identifies this emote."""
10961096
emote_set_id: str
@@ -1104,7 +1104,7 @@ class FragmentEmote(TwitchObject):
11041104
- static — A static PNG file is available for this emote."""
11051105

11061106

1107-
class FragmentMention(TwitchObject):
1107+
class MessageFragmentMention(TwitchObject):
11081108
user_id: str
11091109
"""The user ID of the mentioned user."""
11101110
user_name: str
@@ -1123,11 +1123,11 @@ class MessageFragment(TwitchObject):
11231123
- mention"""
11241124
text: str
11251125
"""Message text in fragment"""
1126-
cheermote: Optional[FragmentCheermote]
1126+
cheermote: Optional[MessageFragmentCheermote]
11271127
"""Metadata pertaining to the cheermote."""
1128-
emote: Optional[FragmentEmote]
1128+
emote: Optional[MessageFragmentEmote]
11291129
"""Metadata pertaining to the emote."""
1130-
mention: Optional[FragmentMention]
1130+
mention: Optional[MessageFragmentMention]
11311131
"""Metadata pertaining to the mention."""
11321132

11331133

0 commit comments

Comments
 (0)