LogoRobo.js
Packages@robojs/mock

SessionConfig

Interface: SessionConfig

Configuration for session initial state

Properties

PropertyTypeDescription
applicationId?string-
approvedPrivilegedIntents?bigintPrivileged intents that are "approved" for this session. Only relevant when enforceIntents is true. Default: All privileged intents approved (for ease of testing) Use bigint values from GatewayIntentBits: - GuildMembers (1 << 1) - GuildPresences (1 << 8) - MessageContent (1 << 15)
botUser?MockUserConfig-
commands?MockApplicationCommandConfig[]Commands to seed in the session (for Stage UI testing)
enforceIntents?booleanWhether to filter events based on declared intents. - false (default): All events sent regardless of intents - true: Events filtered by declared intents, MESSAGE_CONTENT stripped Useful for testing that your bot declares correct intents.
guilds?MockGuildConfig[]-
maxActions?numberMaximum number of recorded actions before LRU eviction (default: 10000)
maxLogs?numberMaximum number of recorded logs before LRU eviction (default: 10000)
permissionEnforcement?"none" | "basic" | "strict"Permission enforcement level for REST API calls. - 'none' (default): All actions succeed regardless of permissions - 'basic': Simple permission checks (requires the permission) - 'strict': Full Discord-accurate logic with hierarchy, context, owner bypass Useful for testing permission error handling in your bot.
users?MockUserConfig[]-

On this page