Alchemy.Client.unpin
You're seeing just the function
unpin
, go back to Alchemy.Client module for more information.
Link to this function
unpin(arg1)
Specs
unpin(Alchemy.Message.t() | {channel_id(), message_id()}) :: {:ok, nil} | {:error, term()}
Removes a pinned message from a channel.
Examples
Cogs.def unpin do
{:ok, [first|_]} = Client.get_pins(message.channel_id)
Client.unpin(first)
end