Function asEmbed

  • Convert a text to an embed.

    Parameters

    • text: string

      The original text.

    • brand: Brand

      The brand to style the embed with.

    Returns Embed

    The resulting embed.

    const brand = { color: 0xffffff }
    const result = asEmbed('HalfBot', brand)