async function unpin(
  channelId,
  messageId,
) {
  await requireBotChannelPermissions(channelId, [
    "MANAGE_MESSAGES",
  ]);
  return await rest.runMethod(
    "delete",
    endpoints.CHANNEL_PIN(channelId, messageId),
  );
}
/** Unpin a message in a channel. Requires MANAGE_MESSAGES. */
Unpin a message in a channel.
Unpin a message in a channel .
async function unpin(
  channelId,
  messageId,
) {
  await requireBotChannelPermissions(channelId, [
    "MANAGE_MESSAGES",
  ]);
  return await rest.runMethod(
    "delete",
    endpoints.CHANNEL_PIN(channelId, messageId),
  );
}
async function unpin ( channelId , messageId , ) { await requireBotChannelPermissions ( channelId , [ "MANAGE_MESSAGES" , ] ) ; return await rest . runMethod ( "delete" , endpoints . CHANNEL_PIN ( channelId , messageId ) , ) ; }
Unpin a message in a channel.
Unpin a message in a channel .