Skip to content

Commit 0b603f5

Browse files
committed
refactor(AppInfo): remove setter for event_webhooks_enabled and associated docstring
1 parent 03a46e8 commit 0b603f5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

discord/appinfo.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -462,18 +462,6 @@ def event_webhooks_enabled(self) -> bool | None:
462462
return None
463463
return self._event_webhooks_status == 2
464464

465-
@event_webhooks_enabled.setter
466-
def event_webhooks_enabled(self, value: bool | None) -> None:
467-
"""Set whether event webhooks are enabled.
468-
469-
Setting to ``True`` maps to the API value ``2`` (enabled), ``False`` maps to ``1`` (disabled),
470-
and ``None`` clears the status (sets it to ``None``).
471-
"""
472-
if value is None:
473-
self._event_webhooks_status = None
474-
return
475-
self._event_webhooks_status = 2 if value else 1
476-
477465

478466
class PartialAppInfo:
479467
"""Represents a partial AppInfo given by :func:`~discord.abc.GuildChannel.create_invite`

0 commit comments

Comments
 (0)