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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for EasyDiscordWebhookMessage-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bfd89dec85093b33e5776c0c0830960845638138b9c2aa300d8d3699c3a5a167
MD5 8880a117c69100a4f7d227db10b17ebc
BLAKE2b-256 6d33eb8e6a312b695be85e5dd56492874192deefad786834a5868e3864c1cea7

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