yepcord / server

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

add MEMBER_ROLE_UPDATE audit log event #116

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/yepcord/server/blob/bec8522f69025fd97aec7184947f46ec0a7cfc1c/server/http_api/main.py#L1635


    data = await request.get_json()
    target_member = await core.getGuildMember(guild, target_user)
    new_member = target_member.copy()
    if "roles" in data: # TODO: add MEMBER_ROLE_UPDATE audit log event
        await member.checkPermission(GuildPermissions.MANAGE_ROLES)
        roles = [int(role) for role in data["roles"]]
        guild_roles = {role.id: role for role in await core.getRoles(guild)}
github-actions[bot] commented 1 year ago

Closed in ae0121c9e72c61ba661581db0d1d4c375e7c61b1