# publishStickerPack method

Future <Result<PubSubError, bool>> publishStickerPack(

1. JID jid,
2. StickerPack pack,
3. {String? accessModel}

)

Publishes the StickerPack `pack` to the PubSub node of `jid`. If specified, then `accessModel` will be used as the PubSub node's access model.

On success, returns true. On failure, returns a PubSubError.

## Implementation

    Future<Result<PubSubError, bool>> publishStickerPack(
      JID jid,
      StickerPack pack, {
      String? accessModel,
    }) async {
      assert(pack.id != '', 'The sticker pack must have an id');
      final pm = getAttributes().getManagerById<PubSubManager>(pubsubManager)!;

      return pm.publish(
        jid.toBare(),
        stickersXmlns,
        pack.toXML(),
        id: pack.id,
        options: PubSubPublishOptions(
          maxItems: 'max',
          accessModel: accessModel,
        ),
      );
    }