Fix changes in ics 0.8
This commit is contained in:
parent
e4d6bc90bd
commit
a5da3341b9
@ -119,12 +119,10 @@ async def ical(guild_id: str):
|
|||||||
|
|
||||||
for scheduled_event in guild.scheduled_events:
|
for scheduled_event in guild.scheduled_events:
|
||||||
event = Event()
|
event = Event()
|
||||||
event.name = scheduled_event.name
|
event.summary = scheduled_event.name
|
||||||
event.begin = scheduled_event.scheduled_start_time
|
event.begin = scheduled_event.scheduled_start_time
|
||||||
event.end = (
|
event.end = scheduled_event.scheduled_end_time
|
||||||
scheduled_event.scheduled_end_time
|
event.duration = timedelta(hours=2)
|
||||||
or scheduled_event.scheduled_start_time + timedelta(hours=2)
|
|
||||||
)
|
|
||||||
event.uid = str(scheduled_event.id)
|
event.uid = str(scheduled_event.id)
|
||||||
event.description = scheduled_event.description
|
event.description = scheduled_event.description
|
||||||
event.url = f"https://discord.com/events/{guild_id}/{scheduled_event.id}"
|
event.url = f"https://discord.com/events/{guild_id}/{scheduled_event.id}"
|
||||||
|
Loading…
Reference in New Issue
Block a user