Fix event name typo.
This commit is contained in:
@@ -177,7 +177,7 @@ class SubathonComponent(cmds.Component):
|
|||||||
# Check goals
|
# Check goals
|
||||||
|
|
||||||
@cmds.Component.listener()
|
@cmds.Component.listener()
|
||||||
async def event_safe_subscription_gift(self, payload):
|
async def event_safe_gift_subscription(self, payload):
|
||||||
event_row, detail_row, gift_payload = payload
|
event_row, detail_row, gift_payload = payload
|
||||||
|
|
||||||
if (active := await self.get_active_subathon(event_row['communityid'])) is not None:
|
if (active := await self.get_active_subathon(event_row['communityid'])) is not None:
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ class TrackerComponent(cmds.Component):
|
|||||||
tier=int(payload.tier),
|
tier=int(payload.tier),
|
||||||
gifted_count=payload.total,
|
gifted_count=payload.total,
|
||||||
)
|
)
|
||||||
self.bot.safe_dispatch('gift_subscription', payload=(event_row, detail_row, payload))
|
self.bot.safe_dispatch('subscription_gift', payload=(event_row, detail_row, payload))
|
||||||
|
|
||||||
@cmds.Component.listener()
|
@cmds.Component.listener()
|
||||||
async def event_subscription_message(self, payload: twitchio.ChannelSubscriptionMessage):
|
async def event_subscription_message(self, payload: twitchio.ChannelSubscriptionMessage):
|
||||||
|
|||||||
Reference in New Issue
Block a user