A Python package for easily sending messages through Discord webhooks
Project description
# Easy Discord Webhook Message
A Python package for easily sending messages through Discord webhooks.
## Installation
Install the package using pip:
```bash
pip install discord_webhook_easy_message
```
## Usage
```python
from discord_webhook_easy_message import Webhook
# Create an instance of the Webhook class
webhook_instance = Webhook()
# Define the webhook URL
webhook_instance.define_webhook_url("your_discord_webhook_url")
# Define mentions (optional)
webhook_instance.define_mentions(["userId1", "userId2"])
# Define content (optional)
webhook_instance.define_content("Hello @user1, check this out!")
# Send a message
webhook_instance.send(
title="New Release",
description="Version 1.0 is now available!",
author="Your Bot",
color="00FF00",
url="https://github.com/yourusername/yourrepository/releases/tag/v1.0"
)
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file EasyDiscordWebhookMessage-1.0.0.tar.gz.
File metadata
- Download URL: EasyDiscordWebhookMessage-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12031ed9292e51bd6aca1ebc4d5774fab4f49fff45c375632bea134d4917a0a9
|
|
| MD5 |
cef96ec546c9618e6b135dc756f408d8
|
|
| BLAKE2b-256 |
a2fcc0535ddf3d0b319a4e1dfb57afd4a0b77042655f21461da7d31eb35ea7bf
|