disagreement/docs/scheduled_events.md
Slipstreamm 9237d12a24 docs(imports): Update import paths in documentation examples
Adjust examples to reflect the new top-level exposure of classes and enums, such as `Client`, `Permissions`, `Embed`, and `Button`, making imports simpler.
2025-06-14 18:44:04 -06:00

582 B

Guild Scheduled Events

The Client provides helpers to manage guild scheduled events.

from disagreement import Client

client = Client(token="TOKEN")

payload = {
    "name": "Movie Night",
    "scheduled_start_time": "2024-05-01T20:00:00Z",
    "privacy_level": 2,
    "entity_type": 3,
    "entity_metadata": {"location": "https://discord.gg/example"},
}

event = await client.create_scheduled_event(123456789012345678, payload)
print(event.id, event.name)

Next Steps