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.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for EasyDiscordWebhookMessage-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0db9615f742a87e6f5cac48d012fb7f38bdee351d44fcd65f03337ab2a791c08
MD5 a77f188d0288bd5b36779f3f913492a5
BLAKE2b-256 e21b3ab78269c23b6d60636de49985de44219c360cfe1d8171a1bdfea17ec2ca

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