A discord webhook client written in Python.
Project description
DiscordWebhook
A discord webhook client written in Python.
Installation
pip install webhook-client
Example
from webhook_client import WebhookClient, Embed
import datetime
client = WebhookClient(
webhook_url="HOOK_URL",
username="github.com/elijahgives",
avatar_url="https://cdn.discordapp.com/attachments/906585612663009314/906624383152431234/gift-gif.gif"
)
embed = Embed(
title='Hello from embed!',
description='Example embed from [webhook-client](https://github.com/elijahgives/webhook-client).',
timestamp=datetime.datetime.utcnow()
)
embed.add_field(name='Field #1', value="Description for `Field #1`.")
embed.set_image(url="https://cdn.discordapp.com/attachments/906585612663009314/906624383152431234/gift-gif.gif")
client.send('Hello world', embeds=[embed], tts=False)
License
Copyright (c) ElijahGives 2021 - Licensed under the GNU General Public License v3.
Credits
https://github.com/rapptz/discord.py for the Embed structure.
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
webhook-client-1.0.1.tar.gz
(19.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webhook-client-1.0.1.tar.gz.
File metadata
- Download URL: webhook-client-1.0.1.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8435121421edd596411608e385894da65ede34a59bd62231e4958e46e9de12b6
|
|
| MD5 |
05b955b4b1d637089977fe7f23bbbc94
|
|
| BLAKE2b-256 |
368c924f6cc6213478470b9c3489e7bcd3dd9cc2b4a47e0c04e2389aa6cf5298
|
File details
Details for the file webhook_client-1.0.1-py3-none-any.whl.
File metadata
- Download URL: webhook_client-1.0.1-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8badf74e7b856285cba78258c0dfef886dfe18003ab7f7969462c9509504cf5
|
|
| MD5 |
fc52b695173dd43dca850d2310f41f30
|
|
| BLAKE2b-256 |
31862a724d2e34bb2a8ff487cf4233e6f27e571cc8a04bf6d34f917fbb14a4a0
|