(cls, thread: Thread)
| 407 | |
| 408 | @classmethod |
| 409 | def _from_thread(cls, thread: Thread) -> Self: |
| 410 | data: ThreadDeleteEvent = { |
| 411 | 'id': thread.id, |
| 412 | 'type': thread.type.value, |
| 413 | 'guild_id': thread.guild.id, |
| 414 | 'parent_id': thread.parent_id, |
| 415 | } |
| 416 | |
| 417 | instance = cls(data) |
| 418 | instance.thread = thread |
| 419 | |
| 420 | return instance |
| 421 | |
| 422 | |
| 423 | class RawThreadMembersUpdate(_RawReprMixin): |
no outgoing calls
no test coverage detected