MCPcopy
hub / github.com/Rapptz/discord.py / _from_thread

Method _from_thread

discord/raw_models.py:409–420  ·  view source on GitHub ↗
(cls, thread: Thread)

Source from the content-addressed store, hash-verified

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
423class RawThreadMembersUpdate(_RawReprMixin):

Callers 1

parse_channel_deleteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected