Easily build Discord Embed dictionaries
Project description
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.
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for embed_builder-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14f9837ef76f36558b8e9bbab5f58f07b3b1addcb2acfdc2e4e114728b1f8a36 |
|
MD5 | 998bb7bd8cf6cea3b9ff875691b3fcda |
|
BLAKE2b-256 | a86fb78db5ba527237e2840c97a04f4b83b94f49a7f88c5763f64d9a726e305e |