Skip to content

Commit b00e4d4

Browse files
remove clip_application
1 parent 9f61729 commit b00e4d4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

disnake/message.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
)
2525

2626
from . import utils
27-
from .appinfo import AppInfo
2827
from .channel import PartialMessageable
2928
from .components import MessageTopLevelComponent, _message_component_factory
3029
from .embeds import Embed
@@ -336,11 +335,6 @@ class Attachment(Hashable):
336335
clip_created_at: Optional[:class:`datetime.datetime`]
337336
If this attachment is a clip returns the creation timestamp.
338337
339-
.. versionadded:: |vnext|
340-
341-
application: Optional[:class:`AppInfo`]
342-
If this attachment is a clip returns the application in the stream, if recognized.
343-
344338
.. versionadded:: |vnext|
345339
"""
346340

@@ -362,7 +356,6 @@ class Attachment(Hashable):
362356
"_flags",
363357
"clip_participants",
364358
"clip_created_at",
365-
"application",
366359
)
367360

368361
def __init__(self, *, data: AttachmentPayload, state: ConnectionState) -> None:
@@ -389,9 +382,6 @@ def __init__(self, *, data: AttachmentPayload, state: ConnectionState) -> None:
389382
self.clip_created_at: Optional[datetime.datetime] = utils.parse_time(
390383
data.get("clip_created_at")
391384
)
392-
self.application: Optional[AppInfo] = (
393-
AppInfo(state=state, data=d) if (d := data.get("application")) else None
394-
)
395385

396386
def is_spoiler(self) -> bool:
397387
"""Whether this attachment contains a spoiler.

0 commit comments

Comments
 (0)