@elizaos/plugin-bootstrap 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -185,6 +185,9 @@ var choiceAction = {
185
185
  tags: ["AWAITING_CHOICE"]
186
186
  });
187
187
  const room = state.data.room ?? await runtime.getRoom(message.roomId);
188
+ if (!room || !room.serverId) {
189
+ return false;
190
+ }
188
191
  const userRole = await getUserServerRole(runtime, message.entityId, room.serverId);
189
192
  if (userRole !== "OWNER" && userRole !== "ADMIN") {
190
193
  return false;