yepcord / server

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

set permission_overwrites after channel creation #118

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/yepcord/server/blob/e59f314588538ae39602f5ccb8715f915e0308c7/server/http_api/main.py#L1411


    if "id" in data: del data["id"]
    ctype = data.get("type", ChannelType.GUILD_TEXT)
    if "type" in data: del data["type"]
    if "permission_overwrites" in data: del data["permission_overwrites"] # TODO: set permission_overwrites after channel creation
    channel = Channel(Snowflake.makeId(), ctype, guild_id=guild.id, **data)
    channel = await core.createGuildChannel(channel)
    await core.sendChannelCreateEvent(channel)
github-actions[bot] commented 1 year ago

Closed in ae0121c9e72c61ba661581db0d1d4c375e7c61b1