Nostrum.Struct.Event.ChannelPinsUpdate (nostrum v0.11.0-dev)

View Source

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

channel_id()

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

The ID of the channel

guild_id()

(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

last_pin_timestamp()

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

The time at which the most recent pinned message was pinned

t()

(since 0.5.0)
@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