Application
Get Current Application
GetCurrentApplication
Returns the application object associated with the requesting bot user.
import { getApp } from "dressed";
const app = await getApp();Edit Current Application
PatchCurrentApplication
Edit properties of the app associated with the requesting bot user. Only properties that are passed will be updated.
import { modifyApp } from "dressed";
await modifyApp(data);Get Application Activity Instance
GetAPIApplicationActivityInstance
Returns a serialized activity instance, if it exists. Useful for preventing unwanted activity sessions.
import { getActivityInstance } from "dressed";
const activityInstance = await getActivityInstance(instanceId);