github towns-protocol/towns @towns-protocol/bot@1.0.1

Patch Changes

  • #4794 7227332 Thanks @miguel-nascimento! - Bots can now receive messages from DMs, which doesn't contain a spaceId. You can check isDm to type guard spaceId.

    bot.onMessage(handler, ({ isDm, spaceId }) => {
      if (isDm) {
        // This message was sent in a DM - spaceId is null
        console.log("DM channel, no space");
      } else {
        // This message was sent in a space channel - spaceId is available
        console.log(`Space: ${spaceId}`);
      }
    });
  • Updated dependencies [d81db9a, d81db9a, d81db9a]:

    • @towns-protocol/web3@1.0.1
    • @towns-protocol/encryption@1.0.1
    • @towns-protocol/sdk@1.0.1
    • @towns-protocol/sdk-crypto@1.0.1
    • @towns-protocol/generated@1.0.1
    • @towns-protocol/proto@1.0.1
    • @towns-protocol/utils@1.0.1

Don't miss a new towns release

NewReleases is sending notifications on new releases.