Defined in src/components/app-service-bot.ts:38
Constructors
constructor
new App Service Bot( client: MatrixClient , userId: string , registration: AppServiceRegistration , memberCache: MembershipCache ) : AppServiceBot
Parameters
client: MatrixClient
userId: string
registration: AppServiceRegistration
Defined in src/components/app-service-bot.ts:40
Methods
get Client
get Client( ) : MatrixClient
Returns MatrixClient
Defined in src/components/app-service-bot.ts:55
get Joined Members
get Joined Members( roomId: string ) : Promise < Record < string , { avatar_url?: string ; display_name?: string ; } > >
Returns Promise < Record < string , { avatar_url?: string ; display_name?: string ; } > >
Defined in src/components/app-service-bot.ts:77
get Joined Rooms
get Joined Rooms( ) : Promise < string [] >
Returns Promise < string [] >
Defined in src/components/app-service-bot.ts:67
get Room Info
get Room Info( roomId: string , joinedRoom?: { state?: { events: StateLookupEvent [] ; } ; } ) : Promise < RoomInfo >
Returns Promise < RoomInfo >
Defined in src/components/app-service-bot.ts:99
get User Id
get User Id( ) : string
Returns string
Defined in src/components/app-service-bot.ts:59
is Remote User
is Remote User( userId: string ) : boolean
Returns boolean
Defined in src/components/app-service-bot.ts:132
Construct an AS bot user which has various helper methods.
Param
The client instance configured for the AS bot.
Param
The registration that the bot is following. Used to determine which user IDs it is controlling.
Param
The bridges membership cache instance, for storing membership the bot has discovered.