async function pin(
  channelId,
  messageId,
) {
  await requireBotChannelPermissions(channelId, [
    "MANAGE_MESSAGES",
  ]);
  return await rest.runMethod(
    "put",
    endpoints.CHANNEL_PIN(channelId, messageId),
  );
}
/** Pin a message in a channel. Requires MANAGE_MESSAGES. Max pins allowed in a channel = 50. */
Pin a message in a channel.
Pin a message in a channel .
async function pin(
  channelId,
  messageId,
) {
  await requireBotChannelPermissions(channelId, [
    "MANAGE_MESSAGES",
  ]);
  return await rest.runMethod(
    "put",
    endpoints.CHANNEL_PIN(channelId, messageId),
  );
}
async function pin ( channelId , messageId , ) { await requireBotChannelPermissions ( channelId , [ "MANAGE_MESSAGES" , ] ) ; return await rest . runMethod ( "put" , endpoints . CHANNEL_PIN ( channelId , messageId ) , ) ; }
Pin a message in a channel.
Pin a message in a channel .