yepcord / server

Unofficial discord backend implementation in python.
GNU Affero General Public License v3.0
2 stars 1 forks source link

Replace with list of users subscribed to event #163

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://api.github.com/yepcord/server/blob/7e4a0de4c566dda4b496626f547b4722856a393d/src/rest_api/routes/guilds.py#L726


    event = ScheduledEvent(event_id, guild.id, user.id, status=1, **data.dict())
    await getCore().putScheduledEvent(event)
    await getGw().dispatch(GuildScheduledEventCreateEvent(await event.json), guild_id=guild.id)

    await getCore().subscribeToScheduledEvent(user, event)
    await getGw().dispatch(ScheduledEventUserAddEvent(user.id, event.id, guild.id),
                           guild_id=guild.id)  # TODO: Replace with list of users subscribed to event

    return c_json(await event.json)