View Source Nostrum.Struct.ThreadMember (Nostrum v0.9.0)

Struct representing a thread member object

Summary

Types

Any user-thread settings

The id of the guild the thread is in.

The id of the thread, omitted within GUILD_CREATE events

The timestamp of when the user last joined the thread

t()

The id of the user, omitted within GUILD_CREATE events

Types

@type flags() :: non_neg_integer()

Any user-thread settings

Link to this type

guild_id()

View Source (since 0.5.1)
@type guild_id() :: Nostrum.Struct.Guild.id() | nil

The id of the guild the thread is in.

Only present within THREAD_MEMBER_UPDATE events

@type id() :: Nostrum.Snowflake.t() | nil

The id of the thread, omitted within GUILD_CREATE events

Link to this type

join_timestamp()

View Source (since 0.5.1)
@type join_timestamp() :: DateTime.t()

The timestamp of when the user last joined the thread

@type t() :: %Nostrum.Struct.ThreadMember{
  flags: flags(),
  guild_id: guild_id(),
  id: id(),
  join_timestamp: join_timestamp(),
  user_id: user_id()
}
Link to this type

user_id()

View Source (since 0.5.1)
@type user_id() :: Nostrum.Struct.User.id() | nil

The id of the user, omitted within GUILD_CREATE events