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 easy_discord_webhook_message
```
## Usage
```python
from easy_discord_webhook_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.3.tar.gz.
File metadata
- Download URL: EasyDiscordWebhookMessage-1.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
719d3b77464d1bf41a2cb09397a7e64c57dff814f19fd30f22b744d7024bcf7c
|
|
| MD5 |
fa876cb5986ce9c7c7b1074aee6d97a4
|
|
| BLAKE2b-256 |
e2fd533abd6549f57c65344b4ec41e1ab376506b45d616501142fd90421c1e27
|