| Total Complexity | 0 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # Copyright Pincer 2021-Present |
||
|
|
|||
| 2 | # Full MIT License can be found in `LICENSE` at the project root. |
||
| 3 | |||
| 4 | from __future__ import annotations |
||
| 5 | |||
| 6 | from dataclasses import dataclass |
||
| 7 | from typing import TYPE_CHECKING |
||
| 8 | |||
| 9 | from ...utils.api_object import APIObject, ChannelProperty |
||
| 10 | |||
| 11 | if TYPE_CHECKING: |
||
| 12 | from ...utils.snowflake import Snowflake |
||
| 13 | |||
| 14 | |||
| 15 | @dataclass(repr=False) |
||
| 16 | class WebhooksUpdateEvent(APIObject, ChannelProperty): |
||
| 17 | """ |
||
| 18 | Sent when a guild's channel webhook |
||
| 19 | is created, updated, or deleted. |
||
| 20 | |||
| 21 | Attributes |
||
| 22 | ---------- |
||
| 23 | guild_id: :class:`~pincer.utils.snowflake.Snowflake` |
||
| 24 | id of the guild |
||
| 25 | channel_id: :class:`~pincer.utils.snowflake.Snowflake` |
||
| 26 | id of the channel |
||
| 27 | """ |
||
| 28 | |||
| 29 | guild_id: Snowflake |
||
| 30 | channel_id: Snowflake |
||
| 31 |