@@ -254,9 +254,9 @@ def __init__(self, entry: AuditLogEntry, data: List[AuditLogChangePayload], *, s
254
254
if hasattr (self .before , 'location_type' ):
255
255
from .scheduled_events import ScheduledEventLocation
256
256
if self .before .location_type is enums .ScheduledEventLocationType .external :
257
- before = ScheduledEventLocation (state = state , location = before )
257
+ before = ScheduledEventLocation (state = state , value = before )
258
258
elif hasattr (self .before , 'channel' ):
259
- before = ScheduledEventLocation (state = state , location = self .before .channel )
259
+ before = ScheduledEventLocation (state = state , value = self .before .channel )
260
260
261
261
setattr (self .before , attr , before )
262
262
@@ -272,9 +272,9 @@ def __init__(self, entry: AuditLogEntry, data: List[AuditLogChangePayload], *, s
272
272
if hasattr (self .after , 'location_type' ):
273
273
from .scheduled_events import ScheduledEventLocation
274
274
if self .after .location_type is enums .ScheduledEventLocationType .external :
275
- after = ScheduledEventLocation (state = state , location = after )
275
+ after = ScheduledEventLocation (state = state , value = after )
276
276
elif hasattr (self .after , 'channel' ):
277
- after = ScheduledEventLocation (state = state , location = self .after .channel )
277
+ after = ScheduledEventLocation (state = state , value = self .after .channel )
278
278
279
279
setattr (self .after , attr , after )
280
280
0 commit comments