RootBotStartState
RootBotStartState =
object
Snapshot of the community's current state, passed to your BotStartingCallback during bot server startup. Use this to initialize your bot's in-memory state without making API calls.
Properties
communityId
readonlycommunityId:CommunityGuid
The GUID of the community your bot is installed in.
communityMembers
readonlycommunityMembers:ReadonlyMap<UserGuid,ReadonlySet<CommunityRoleGuid>>
A Map of user GUIDs to Set<CommunityRoleGuid>. Each entry represents a community member and the set of role GUIDs assigned to them.
communityRoles
readonlycommunityRoles:ReadonlyMap<CommunityRoleGuid,Readonly<{id:CommunityRoleGuid;name:string; }>>
A Map of community role GUIDs to objects containing id and name. Represents all roles defined in the community at startup.
globalSettings
readonlyglobalSettings:GlobalSettings|undefined
The bot's GlobalSettings object if the bot has defined global settings in its manifest, or undefined if it has not.