File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ Running Eventsub Inside a Commands Bot
8080 async def event_eventsub_notification_follow(payload: eventsub.ChannelFollowData) -> None:
8181 print('Received event!')
8282 channel = bot.get_channel('channel')
83- await channel.send(f'{payload.user.name} followed woohoo!')
83+ await channel.send(f'{payload.data. user.name} followed woohoo!')
8484
8585 bot.run()
8686
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async def event_ready(self):
2828async def event_eventsub_notification_follow (payload : eventsub .ChannelFollowData ) -> None :
2929 print ("Received event!" )
3030 channel = bot .get_channel ("channel" )
31- await channel .send (f"{ payload .user .name } followed woohoo!" )
31+ await channel .send (f"{ payload .data . user .name } followed woohoo!" )
3232
3333
3434bot .run ()
You can’t perform that action at this time.
0 commit comments