Skip to main content

Handles you Codes Webhook requests. Supports Discord, Slack, etc.

Project description

DiscordWebhookManager

Upload Python Package Python Version

A lightweight Python module for sending, editing, and managing Discord webhooks effortlessly.

Features

  • Send messages and embeds via Discord webhooks
  • Edit and delete webhook messages
  • Manage webhook settings (username, avatar, etc.)
  • Retrieve webhook information from channels and guilds

Installation

You can install DiscordWebhookManager via pip:

pip install WebhookHandler

Quick Start

Sending a Webhook Message

from discord_webhook import Send

webhook_url = "your_webhook_url"
Send.normal(webhook_url, "Hello, Discord Webhook!")

Sending an Embed Message

Send.embed(
    url=webhook_url,
    title="Embed Title",
    description="This is an embedded message.",
    color=0xFF0000
)

Editing a Webhook Message

from discord_webhook import Edit

message_id = "your_message_id"
Edit.edit_message(webhook_url, message_id, "Updated content")

Deleting a Webhook Message

Edit.delete_message(webhook_url, message_id)

Managing Webhooks

Creating a Webhook

Edit.create_webhook(channel_id="your_channel_id", name="New Webhook")

Retrieving Webhooks

from discord_webhook import Get

Get.channel_webhook("your_channel_id")

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Links

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

webhookhandler-1.0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WebhookHandler-1.0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: webhookhandler-1.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for webhookhandler-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ee32e5ceec8c1268272d59ccee9e58ed1f0bec8a6a5587806299c75b3b09b8bc
MD5 92a53a436aa69fdc8ed2caaf7df6809f
BLAKE2b-256 4e6a1577aa869eb2d6131dc4e19f6b1a84249b49317c27eb3262aa067ffb0273

See more details on using hashes here.

Provenance

The following attestation bundles were made for webhookhandler-1.0.3.tar.gz:

Publisher: python-publish.yml on SyncWide-Solutions/WebhookHandler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file WebhookHandler-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: WebhookHandler-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for WebhookHandler-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 92c6151afbc5a28c3bcd2a301ad72d8279df2a1724e082c7d14a73d35970b3d2
MD5 58f8b2c34545490e53ef1b6b8c493397
BLAKE2b-256 988d5d96e1061523aa61027c677480d7d4b5b28672e5bcf21254a9d236c46b60

See more details on using hashes here.

Provenance

The following attestation bundles were made for WebhookHandler-1.0.3-py3-none-any.whl:

Publisher: python-publish.yml on SyncWide-Solutions/WebhookHandler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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