View Source Nostrum.Struct.Event.ChannelPinsUpdate (Nostrum v0.9.0)

Represents an update to channel pins.

Summary

Types

The ID of the channel

The ID of the guild, if the pin update was on a guild

The time at which the most recent pinned message was pinned

t()

Event sent when a message is pinned or unpinned in a text channel

Types

Link to this type

channel_id()

View Source (since 0.5.0)
@type channel_id() :: Nostrum.Struct.Channel.id()

The ID of the channel

Link to this type

guild_id()

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

The ID of the guild, if the pin update was on a guild

Link to this type

last_pin_timestamp()

View Source (since 0.5.0)
@type last_pin_timestamp() :: DateTime.t() | nil

The time at which the most recent pinned message was pinned

@type t() :: %Nostrum.Struct.Event.ChannelPinsUpdate{
  channel_id: channel_id(),
  guild_id: guild_id(),
  last_pin_timestamp: last_pin_timestamp()
}

Event sent when a message is pinned or unpinned in a text channel