Skip to main content

embed_builder

I got tired of manually writing dictionaries to send embeds via Discord webhooks so I made this package to do it effortlessly.

This package was developed on Python 3.10.x but has not been tested on earlier versions. If you happen to successfully use this package on an older version then do let me know.

Installation

$ pip install embed-builder

Usage

from embed_builder import Embed

embed = Embed()
embed.set_title("Hello")
embed.set_description("How are you?")
my_embed = embed.build()

# Or via chaining...

my_embed = Embed().set_title("Hello").set_description("How are you?").build()

# Example usage with Discord webhooks and requests package

requests.post("webhook url", json={
    "content": "here is an embed",
    "embeds": [my_embed]
})

Warning Discord's embed total character limit is not currently enforced through this package. Make sure your content is the correct size as you are building embeds.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

embed-builder-1.0.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

embed_builder-1.0.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file embed-builder-1.0.5.tar.gz.

File metadata

  • Download URL: embed-builder-1.0.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for embed-builder-1.0.5.tar.gz
Algorithm Hash digest
SHA256 591496b21c5a575039bc28b37e5a1af1999b228ad8c298c684926a9258d5a6d4
MD5 67b8c0d7c9c2520980a7410820ea5110
BLAKE2b-256 5798ba10653ec9af2d732dcb7f14981e985c654573e615a01b61f17ec7c48033

See more details on using hashes here.

File details

Details for the file embed_builder-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: embed_builder-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for embed_builder-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 464ff293f1b94544f828410aa995550f5fe4a9ddb8a38e292df723aad5b4cfdb
MD5 f4ed8ca32811b4a9b8bd4ae220fcf276
BLAKE2b-256 66228f38754f4a09d6196091b293319af215e60be1d699d1c08fd221c2c8094e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page