Skip to main content

guilded-webhook

a basic wrapper for guilded's webhooks

(also works with discords, although this is due to both having very similar api's, any breaking changes on discord's side will not receive fixes)

guilded support server

discord support server

Basic example:

import guilded_webhook as guilded
import asyncio

async def main():
    hook = guilded.AsyncWebhook('https://media.guilded.gg/webhooks/REDACTED')
    await hook.send(content='test')

asyncio.run(main())

or

import guilded_webhook as guilded

def main():
    hook = guilded.Webhook('https://media.guilded.gg/webhooks/REDACTED')
    hook.send(content='test')

main()

guilded-webhook also supports embeds (heavily inspired by discord.py's embeds)

import guilded_webhook as guilded
import asyncio
from datetime import datetime

async def main():
    hook = guilded.AsyncWebhook('https://media.guilded.gg/webhooks/REDACTED')
    embed = guilded.Embed(title="title", description="description", url="https://www.youtube.com/watch?v=dQw4w9WgXcQ", color=0x00ffff, timestamp=datetime.now())
    embed.add_field(title="field title", value="field value")
    embed.set_image("https://img.guildedcdn.com/ContentMedia/e67907d6efa7aebb0440097cb9a03672-Full.webp")
    await hook.send(content='test', embeds=embed)

asyncio.run(main())

docs

class - AsyncWebHook

  • (arg) str - url - webhook url.

  • (kwarg) str - avatar - optional avatar override (image url).

  • (kwarg) str - username - optional username override.

  • (async) method - send

    • (kwarg) string - content

    • (kwarg) List[Embed] - embeds

    • (kwarg) str - avatar - optional avatar override (overrides instance avatar) (image url).

    • (kwarg) str - username - optional username override (overrides instance username)

    • (kwarg) File - file to upload with the message

class - WebHook

  • (arg) str - url - webhook url.

  • (kwarg) str - avatar - optional avatar override (image url).

  • (kwarg) str - username - optional username override.

  • method - send

    • (kwarg) string - content

    • (kwarg) List[Embed] - embeds

    • (kwarg) str - avatar - optional avatar override (overrides instance avatar) (image url).

    • (kwarg) str - username - optional username override (overrides instance username)

    • (kwarg) File - file to upload with the message

class - Embed

  • (kwarg) str - title

  • (kwarg) str - description

  • (kwarg) str - url

  • (kwarg) int - color (hex color)

  • (kwarg) datetime.datetime - timestamp

  • method - add_field

    • (kwarg) str - title

    • (kwarg) str - value

    • (kwarg) bool - inline

  • method - set_author

    • (kwarg) str - name

    • (kwarg) str - url

    • (kwarg) str - icon_url

  • method - set_footer

    • (kwarg) str - text

    • (kwarg) str - icon_url

  • method - set_image

    • (kwarg) str - url

    • (kwarg) int - height

    • (kwarg) int - width

  • method - set_thumbnail

    • (kwarg) str - url

    • (kwarg) int - height

    • (kwarg) int - width

class - File

  • (arg) Union[str, bytes, os.PathLike, io.BufferedIOBase] - fp - filelike object to upload

  • (arg) str - filename - filename to upload as (required when using BytesIO and similar)

Metadata

Release files for guilded-webhook 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for guilded-webhook 0.3.1
File Size Uploaded Provenance Actions
guilded-webhook-0.3.1.tar.gz 17.1 kB Without provenance Details for guilded-webhook-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for guilded-webhook 0.3.1
File Interpreter ABI Platform Actions
guilded_webhook-0.3.1-py3-none-any.whl Python 3 none any Details for guilded_webhook-0.3.1-py3-none-any.whl

Total release size: 35.0 kB

Release files / guilded-webhook-0.3.1.tar.gz

Download URL guilded-webhook-0.3.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
83790abd62b5d1c0455472af63d26b2e06687731e83fd62d8b68df11c1737519
BLAKE2b-256 checksum
How to use checksums
b6f002dba3108e06554ec3c00c1c8a0b6e71df56eb2aa28094502cc4b319168e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.7

Release files / guilded_webhook-0.3.1-py3-none-any.whl

Download URL guilded_webhook-0.3.1-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d89531d404c45c8b7fed92f5c80b914d6bbb963e309f36ec97e9c3b34102fb33
BLAKE2b-256 checksum
How to use checksums
16b406e3e74e357f9936e49c2893c049a06c44cdfab75d015b89d2dcf845a64b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.7

Security for guilded-webhook 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page