LogoRobo.js
Packages@robojs/mock

TestSession

Interface: TestSession

Test session wrapper with convenience methods

Properties

PropertyTypeDescription
botUser{ id: string; username: string; }Bot user info
botUser.idstring-
botUser.usernamestring-
channels{ guildId: string; id: string; name: string; type: number; }[]Pre-configured channels
guildIdstringConvenience: first guild ID
guilds{ id: string; name: string; }[]Pre-configured guilds
idstringSession ID
name?stringSession name
testFilePath?stringTest file path this session is associated with
tokenstringBot token for this session

Methods

destroy()

destroy(): Promise<void>

Destroy the session and clean up

Returns

Promise<void>

On this page