Function applyStyle

  • Apply brand style to an multiple embeds.

    Type Parameters

    Parameters

    • toApplyOn: E

      The embeds to apply the style to.

    • brand: Brand

      The brand to get the style from.

    Returns E

    The embeds array after applying the style to it.

    const brand = { color: 0xffffff }
    let embed = { title: 'HalfBot' }
    embed = applyStyle(embed, brand)
    const brand = { color: 0xffffff }
    let embeds = [{ title: 'HalfBot' }]
    embeds = applyStyle(embeds, brand)