more procs

This commit is contained in:
array-in-a-matrix 2023-12-19 16:29:59 -05:00
parent 0d89d4854b
commit fc7b06d660
2 changed files with 11 additions and 6 deletions

View file

@ -163,15 +163,16 @@ proc sendStateEvent*(client: Client, roomId: cstring, `type`: cstring, content:
proc redactEvent*(client: Client, roomId: cstring, eventId: cstring, reason: cstring = nil) {.importjs: "#.redactEvent(#, #, #)".}
proc createRoom*(client: Client, )
proc createRoom*(client: Client) {.importjs: "#.createRoom()".}
proc createRoom*(client: Client, properties: RoomCreateOptions) {.importjs: "#.createRoom(#)".}
proc userHasPowerLevelFor*(client: Client, )
proc userHasPowerLevelFor*(client: Client, userId, roomId, eventType: cstring, isState: bool) {.importjs: "#.userHasPowerLevelFor(#, #, #, #)".}
proc userHasPowerLevelForAction*(client: Client, )
proc userHasPowerLevelForAction*(client: Client, userId, roomId: cstring, action: PowerLevelAction) {.importjs: "#.userHasPowerLevelForAction(#, #, #)".}
proc calculatePowerLevelChangeBoundsOn*(client: Client, )
proc calculatePowerLevelChangeBoundsOn*(client: Client, targetUserId, roomId: cstring) {.importjs: "#.calculatePowerLevelChangeBoundsOn(#, #)".}
proc setUserPowerLevel*(client: Client, )
proc setUserPowerLevel*(client: Client, userId, roomId: cstring, newLevel: int) {.importjs: "#.setUserPowerLevel(#, #, #)".}
proc mxcToHttp*(client: Client, )

View file

@ -36,4 +36,8 @@ type PresenceState* = ref object
type IJoinRoomStrategy* = ref object
type Membership* = ref object
type Membership* = ref object
type RoomCreateOptions* = ref object
type PowerLevelAction* = ref object