Skip to main content

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

EasyDiscordWebhookMessage-1.0.3.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file EasyDiscordWebhookMessage-1.0.3.tar.gz.

File metadata

File hashes

Hashes for EasyDiscordWebhookMessage-1.0.3.tar.gz
Algorithm Hash digest
SHA256 719d3b77464d1bf41a2cb09397a7e64c57dff814f19fd30f22b744d7024bcf7c
MD5 fa876cb5986ce9c7c7b1074aee6d97a4
BLAKE2b-256 e2fd533abd6549f57c65344b4ec41e1ab376506b45d616501142fd90421c1e27

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