fix: Incorrect payload type in ChatNotification event
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
import twitchio
|
||||
from twitchio.types_.eventsub import *
|
||||
|
||||
|
||||
class ChatNotificationWithPayload(twitchio.ChatNotification):
|
||||
@@ -10,6 +11,6 @@ class ChatNotificationWithPayload(twitchio.ChatNotification):
|
||||
|
||||
__slots__ = ("_raw",)
|
||||
|
||||
def __init__(self, payload: twitchio.ChannelChatNotificationEvent, *args, **kwargs):
|
||||
def __init__(self, payload: ChannelChatNotificationEvent, *args, **kwargs):
|
||||
super().__init__(payload, *args, **kwargs)
|
||||
self._raw = payload
|
||||
|
||||
Reference in New Issue
Block a user