generated from array-in-a-matrix/matrix-bot-template
more procs
This commit is contained in:
parent
0d89d4854b
commit
fc7b06d660
|
@ -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, )
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue